diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-06-02 03:01:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 03:01:49 -0400 |
commit | 516c95526ab68e4a6e13008d60d0156178c8571c (patch) | |
tree | 44dc456d506979fdf0454d2a95fc92f243db590e | |
parent | 2c63b8a2fdbc1e72711e09417380fd67063b07d3 (diff) | |
parent | 1933972909bdf2fd7b1d282431c3c6f7b00cfe49 (diff) | |
download | podman-516c95526ab68e4a6e13008d60d0156178c8571c.tar.gz podman-516c95526ab68e4a6e13008d60d0156178c8571c.tar.bz2 podman-516c95526ab68e4a6e13008d60d0156178c8571c.zip |
Merge pull request #14446 from andrin55/podman-restart-service-shutdown-fix
podman-restart.service: Add ExecStop and dependencies to fix shutdown
-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 |