From 6f779b23002710a74d6f2360ad0dc0029b5eefac 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/systemd/system/podman-restart.service b/contrib/systemd/system/podman-restart.service index baf12b3ae..b8c1adca2 100644 --- a/contrib/systemd/system/podman-restart.service +++ b/contrib/systemd/system/podman-restart.service @@ -5,8 +5,9 @@ StartLimitIntervalSec=0 [Service] Type=oneshot +RemainAfterExit=true Environment=LOGGING="--log-level=info" ExecStart=/usr/bin/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