summaryrefslogtreecommitdiff
path: root/contrib/systemd/system/podman-restart.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/system/podman-restart.service')
-rw-r--r--contrib/systemd/system/podman-restart.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/systemd/system/podman-restart.service b/contrib/systemd/system/podman-restart.service
new file mode 100644
index 000000000..baf12b3ae
--- /dev/null
+++ b/contrib/systemd/system/podman-restart.service
@@ -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=/usr/bin/podman $LOGGING start --all --filter restart-policy=always
+
+[Install]
+WantedBy=multi-user.target