Skip to content

Commit aa1cf02

Browse files
Merge pull request #25134 from andrew-sayers/patch-3
Fix podman-restart.service when there are no containers
2 parents 8d65d1e + 527a51d commit aa1cf02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/systemd/system/podman-restart.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Type=oneshot
1010
RemainAfterExit=true
1111
Environment=LOGGING="--log-level=info"
1212
ExecStart=@@PODMAN@@ $LOGGING start --all --filter restart-policy=always
13-
ExecStop=/bin/sh -c '@@PODMAN@@ $LOGGING stop $(@@PODMAN@@ container ls --filter restart-policy=always -q)'
13+
ExecStop=@@PODMAN@@ $LOGGING stop --all --filter restart-policy=always
1414

1515
[Install]
1616
WantedBy=default.target

0 commit comments

Comments
 (0)