summaryrefslogtreecommitdiff
path: root/contrib/systemd
diff options
context:
space:
mode:
authorEaston Man <manyang.me@outlook.com>2021-10-19 20:11:03 +0800
committerEaston Man <manyang.me@outlook.com>2021-10-20 10:31:13 +0800
commit12d0a850917c97314cd4fdb49e68757dfe3b5289 (patch)
treedad6e0cb229862bb7620ac0863e41e0a1fa6f0a5 /contrib/systemd
parente0ffc431fe7f016124fdcb36819698a90fe448a9 (diff)
downloadpodman-12d0a850917c97314cd4fdb49e68757dfe3b5289.tar.gz
podman-12d0a850917c97314cd4fdb49e68757dfe3b5289.tar.bz2
podman-12d0a850917c97314cd4fdb49e68757dfe3b5289.zip
systemd: compatible with rootless mode
- change the type to forking to allow fork. - add default.target for user systemd service Signed-off-by: Easton Man <manyang.me@outlook.com>
Diffstat (limited to 'contrib/systemd')
-rw-r--r--contrib/systemd/system/podman-restart.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/systemd/system/podman-restart.service.in b/contrib/systemd/system/podman-restart.service.in
index a2951e111..46193e2c6 100644
--- a/contrib/systemd/system/podman-restart.service.in
+++ b/contrib/systemd/system/podman-restart.service.in
@@ -5,8 +5,9 @@ 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
+WantedBy=multi-user.target default.target