Skip to content

Commit

Permalink
systemd: compatible with rootless mode
Browse files Browse the repository at this point in the history
- change the type to forking to allow fork.
- add default.target for user systemd service

Signed-off-by: Easton Man <[email protected]>
  • Loading branch information
eastonman authored and mheon committed Nov 12, 2021
1 parent 465e27c commit 6f779b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/systemd/system/podman-restart.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6f779b2

Please sign in to comment.