diff options
author | Easton Man <manyang.me@outlook.com> | 2021-10-19 20:11:03 +0800 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-11-12 11:08:25 -0500 |
commit | 6f779b23002710a74d6f2360ad0dc0029b5eefac (patch) | |
tree | edc9146bac03ec6f2bcb00d653894ed6374305d8 /contrib/systemd | |
parent | 465e27cf10d1019297dfed643ed22d3d558a00da (diff) | |
download | podman-6f779b23002710a74d6f2360ad0dc0029b5eefac.tar.gz podman-6f779b23002710a74d6f2360ad0dc0029b5eefac.tar.bz2 podman-6f779b23002710a74d6f2360ad0dc0029b5eefac.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 | 3 |
1 files changed, 2 insertions, 1 deletions
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 |