From bf86ed72c211affb3305674e162c1a7abae2dd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Thu, 14 Sep 2023 06:51:35 +0200 Subject: [PATCH] [CI:DOCS] restart.md: migrate to container unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/containers/podman/issues/19968 Signed-off-by: Erik Sjölund --- docs/source/markdown/options/restart.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/markdown/options/restart.md b/docs/source/markdown/options/restart.md index 2a7d56a696..6c84cd5ecd 100644 --- a/docs/source/markdown/options/restart.md +++ b/docs/source/markdown/options/restart.md @@ -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).