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>
This commit is contained in:
Easton Man
2021-10-19 20:11:03 +08:00
parent e0ffc431fe
commit 12d0a85091

View File

@ -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