Skip to content

Commit

Permalink
Merge pull request containers#19458 from openshift-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-19451-to-v4.6

[v4.6] [CI:DOCS] Mention TimeoutStartSec in quadlet man page
  • Loading branch information
rhatdan committed Jul 31, 2023
2 parents 2718901 + e4e983e commit 77b5799
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/source/markdown/podman-systemd.unit.5.md
Expand Up @@ -46,6 +46,16 @@ file in the /etc/containers/systemd/users/${UID}/ directory, then only the
user with the matching UID execute the Quadlet when the login
session gets started.

Note: When a Quadlet is starting, Podman often pulls one more container images which may take a considerable amount of time.
Systemd defaults service start time to 90 seconds, or fails the service. Pre-pulling the image or extending
the systemd timeout time for the service using the *TimeoutStartSec* Service option can fix the problem.

Adding the following snippet to a Quadlet file extends the systemd timeout to 15 minutes.

```
[Service]
TimeoutStartSec=900
```

### Enabling unit files

Expand Down Expand Up @@ -821,6 +831,8 @@ Exec=sleep 60
[Service]
# Restart service when sleep finishes
Restart=always
# Extend Timeout to allow time to pull the image
TimeoutStartSec=900
[Install]
# Start by default on boot
Expand Down

0 comments on commit 77b5799

Please sign in to comment.