summaryrefslogtreecommitdiff
path: root/contrib/systemd/system/podman-restart.service.in
blob: de02493815c28779cbdbbe21bf8a131667ab3b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
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