home-pods/pod-web.service

23 lines
823 B
SYSTEMD
Raw Normal View History

2022-08-21 10:59:37 +02:00
[Unit]
Description=Podman pod-web.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=
Requires=container-php-fpm.service container-nginx-web.service
Before=container-php-fpm.service container-nginx-web.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/pod-web.pid %t/pod-web.pod-id
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-web.pid --pod-id-file %t/pod-web.pod-id -p 8053:80 --name web --replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-web.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-web.pod-id -t 10
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-web.pod-id
PIDFile=%t/pod-web.pid
Type=forking
[Install]
WantedBy=default.target