Skip to content

Commit

Permalink
Install systemd unit into XDG_CONFIG_HOME/systemd/user
Browse files Browse the repository at this point in the history
Signed-off-by: Samir Benmendil <me@rmz.io>
  • Loading branch information
Ram-Z committed Apr 16, 2022
1 parent 6ca7f73 commit 92781e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ def compose_systemd(compose, args):
"""
create systemd unit file and register its compose stacks
When first installed type `sudo podman-compose -a create-unit`
When first installed type `podman-compose -a create-unit`
later you can add a compose stack by running `podman-compose -a register`
then you can start/stop your stack with `systemctl --user start podman-compose@<PROJ>`
"""
Expand Down Expand Up @@ -1789,7 +1789,7 @@ def compose_systemd(compose, args):
for i in ls:
print(os.path.basename(i[:-4]))
elif args.action == "create-unit":
fn = "/usr/lib/systemd/user/podman-compose@.service"
fn = f"{config_home}/systemd/user/podman-compose@.service"
out = f"""\
# {fn}
Expand Down Expand Up @@ -1819,7 +1819,7 @@ def compose_systemd(compose, args):
)
else:
print(out)
log(f"Could not write to [{fn}], use 'sudo'")
log(f"Could not write to [{fn}]")


@cmd_run(podman_compose, "pull", "pull stack images")
Expand Down

0 comments on commit 92781e4

Please sign in to comment.