summaryrefslogtreecommitdiff
path: root/contrib/systemd/system/podman-restart.service
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-15 16:12:13 -0400
committerGitHub <noreply@github.com>2021-06-15 16:12:13 -0400
commitb422a4eb49182f6b90dae9ed041546cc46cc59db (patch)
treec4dacae909dd97b1477a0e58ceec2913df3e585c /contrib/systemd/system/podman-restart.service
parent463a5a7db5b096f225324d9c2c40e40a47f6e7c2 (diff)
parent302b3084ebadb13a0b203eac63e24b0e5d3535a0 (diff)
downloadpodman-b422a4eb49182f6b90dae9ed041546cc46cc59db.tar.gz
podman-b422a4eb49182f6b90dae9ed041546cc46cc59db.tar.bz2
podman-b422a4eb49182f6b90dae9ed041546cc46cc59db.zip
Merge pull request #10595 from boaz0/closes_10539
Add podman-restart systemd unit file
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