summaryrefslogtreecommitdiff
path: root/contrib/systemd/system/podman-restart.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/system/podman-restart.service.in')
-rw-r--r--contrib/systemd/system/podman-restart.service.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/systemd/system/podman-restart.service.in b/contrib/systemd/system/podman-restart.service.in
new file mode 100644
index 000000000..a2951e111
--- /dev/null
+++ b/contrib/systemd/system/podman-restart.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=Podman Start All Containers With Restart Policy Set To Always
+Documentation=man:podman-start(1)
+StartLimitIntervalSec=0
+
+[Service]
+Type=oneshot
+Environment=LOGGING="--log-level=info"
+ExecStart=@@PODMAN@@ $LOGGING start --all --filter restart-policy=always
+
+[Install]
+WantedBy=multi-user.target