diff options
author | Andrin Brunner <andrin@acloud.one> | 2022-06-01 16:02:18 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-06-14 14:40:55 -0400 |
commit | da4027c6550898045d93ac61d1b8b3e990bf5c73 (patch) | |
tree | 4540391d9428cd79330bcc3c650789fe09c20561 /contrib | |
parent | fee29c564d83a4bdae554564680971f8303e9c85 (diff) | |
download | podman-da4027c6550898045d93ac61d1b8b3e990bf5c73.tar.gz podman-da4027c6550898045d93ac61d1b8b3e990bf5c73.tar.bz2 podman-da4027c6550898045d93ac61d1b8b3e990bf5c73.zip |
Add ExecStop and dependencies to fix shutdown
Signed-off-by: Andrin Brunner <andrin@acloud.one>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/systemd/system/podman-restart.service.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/systemd/system/podman-restart.service.in b/contrib/systemd/system/podman-restart.service.in index 1f13e57e1..de0249381 100644 --- a/contrib/systemd/system/podman-restart.service.in +++ b/contrib/systemd/system/podman-restart.service.in @@ -2,12 +2,15 @@ Description=Podman Start All Containers With Restart Policy Set To Always Documentation=man:podman-start(1) StartLimitIntervalSec=0 +Wants=network-online.target +After=network-online.target [Service] Type=oneshot RemainAfterExit=true Environment=LOGGING="--log-level=info" ExecStart=@@PODMAN@@ $LOGGING start --all --filter restart-policy=always +ExecStop=/bin/sh -c '@@PODMAN@@ $LOGGING stop $(@@PODMAN@@ container ls --filter restart-policy=always -q)' [Install] WantedBy=default.target |