From 12d0a850917c97314cd4fdb49e68757dfe3b5289 Mon Sep 17 00:00:00 2001 From: Easton Man Date: Tue, 19 Oct 2021 20:11:03 +0800 Subject: 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 --- contrib/systemd/system/podman-restart.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf