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.in13
1 files changed, 13 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..46193e2c6
--- /dev/null
+++ b/contrib/systemd/system/podman-restart.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=Podman Start All Containers With Restart Policy Set To Always
+Documentation=man:podman-start(1)
+StartLimitIntervalSec=0
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+Environment=LOGGING="--log-level=info"
+ExecStart=@@PODMAN@@ $LOGGING start --all --filter restart-policy=always
+
+[Install]
+WantedBy=multi-user.target default.target