aboutsummaryrefslogtreecommitdiff
path: root/docs/source/markdown
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-13 13:00:23 +0200
committerGitHub <noreply@github.com>2022-09-13 13:00:23 +0200
commitc0dd0d696e333ad42a5fa3d9428fee27b1c30061 (patch)
tree6d20a847b4df3361c2f80bff59bed3a2e7e14a8a /docs/source/markdown
parenteb6925930533b2ea812551d107f69bdf16f1dd0a (diff)
parent0ea5080c9156853b7806879226e23ab0405815d6 (diff)
downloadpodman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.tar.gz
podman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.tar.bz2
podman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.zip
Merge pull request #15766 from vrothberg/fix-15284
generate systemd: warn on --restart without --new
Diffstat (limited to 'docs/source/markdown')
-rw-r--r--docs/source/markdown/podman-generate-systemd.1.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/source/markdown/podman-generate-systemd.1.md b/docs/source/markdown/podman-generate-systemd.1.md
index ee649c95b..b733cff8d 100644
--- a/docs/source/markdown/podman-generate-systemd.1.md
+++ b/docs/source/markdown/podman-generate-systemd.1.md
@@ -85,7 +85,9 @@ Set the systemd unit requires (`Requires=`) option. Similar to wants, but declar
#### **--restart-policy**=*policy*
Set the systemd restart policy. The restart-policy must be one of: "no", "on-success", "on-failure", "on-abnormal",
-"on-watchdog", "on-abort", or "always". The default policy is *on-failure*.
+"on-watchdog", "on-abort", or "always". The default policy is *on-failure* unless the container was created with a custom restart policy.
+
+Note that generating a unit without `--new` on a container with a custom restart policy can lead to issues on shutdown; systemd will attempt to stop the unit while Podman tries to restart it. It is recommended to to create the container without `--restart` and use the `--restart-policy` option instead when generating the unit file.
#### **--restart-sec**=*time*