podlaunch/pod@.service

30 lines
660 B
SYSTEMD
Raw Permalink Normal View History

2020-11-14 17:50:04 +00:00
[Unit]
Description=Podman pod@%i
Documentation=man:podman-generate-systemd(1)
Wants=network.target
After=network-online.target
StartLimitIntervalSec=6h
StartLimitBurst=5
# To add a image dependency:
#Wants=image@….service
#After=image@….service
2020-11-14 17:50:04 +00:00
[Service]
Type=notify
NotifyAccess=main
2020-11-14 17:50:04 +00:00
Environment=PODMAN_SYSTEMD_UNIT=%n
2021-06-15 13:54:07 +00:00
LogExtraFields=POD=%i
SyslogIdentifier=podlaunch@%i
2020-11-14 17:50:04 +00:00
ExecStart=/usr/local/bin/podlaunch %i
2020-12-02 10:26:57 +00:00
ExecReload=/usr/bin/podman pod kill --signal HUP %i_pod
Restart=always
RestartSec=20s
2021-11-28 09:13:38 +00:00
TimeoutStartSec=3min
2020-11-14 17:50:04 +00:00
TimeoutStopSec=1min
SendSIGKILL=no
2021-11-28 09:13:38 +00:00
LogRateLimitIntervalSec=1h
LogRateLimitBurst=1800
2020-11-14 17:50:04 +00:00
[Install]
WantedBy=multi-user.target default.target