mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
[CI:DOCS] restart.md: migrate to container unit
Fixes: https://github.com/containers/podman/issues/19968 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
@ -17,4 +17,6 @@ Valid _policy_ values are:
|
|||||||
|
|
||||||
Podman provides a systemd unit file, podman-restart.service, which restarts containers after a system reboot.
|
Podman provides a systemd unit file, podman-restart.service, which restarts containers after a system reboot.
|
||||||
|
|
||||||
If container runs as a system service, generate a systemd unit file to manage it. See **podman generate systemd**.
|
When running containers in systemd services, use the restart functionality provided by systemd.
|
||||||
|
In other words, do not use this option in a container unit, instead set the `Restart=` systemd directive in the `[Service]` section.
|
||||||
|
See **podman-systemd.unit**(5) and **systemd.service**(5).
|
||||||
|
Reference in New Issue
Block a user