[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:
Erik Sjölund
2023-09-14 06:51:35 +02:00
parent a0b4138626
commit bf86ed72c2

View File

@ -17,4 +17,6 @@ Valid _policy_ values are:
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).