Make service file more legible
This commit is contained in:
parent
ebc55ad9d8
commit
8b39d55afa
@ -12,7 +12,19 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||
Restart=on-failure
|
||||
TimeoutStopSec=70
|
||||
ExecStartPre=/bin/rm -f %t/container-www-nginx.pid %t/container-www-nginx.ctr-id
|
||||
ExecStart=/usr/bin/podman run --conmon-pidfile %t/container-www-nginx.pid --cidfile %t/container-www-nginx.ctr-id --cgroups=no-conmon --pod-id-file %t/pod-www.pod-id --replace --label "io.containers.autoupdate=image" -dt -v /etc/resolv.conf:/etc/resolv.conf:ro -v ./.config/pod-www/wojciechkozlowski.eu/public:/usr/share/nginx/html:ro --name=pod-www-nginx docker.io/library/nginx
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--conmon-pidfile %t/container-www-nginx.pid \
|
||||
--cidfile %t/container-www-nginx.ctr-id \
|
||||
--cgroups=no-conmon \
|
||||
--pod-id-file \
|
||||
%t/pod-www.pod-id \
|
||||
--replace \
|
||||
--label "io.containers.autoupdate=image" \
|
||||
-dt \
|
||||
-v /etc/resolv.conf:/etc/resolv.conf:ro \
|
||||
-v ./.config/pod-www/wojciechkozlowski.eu/public:/usr/share/nginx/html:ro \
|
||||
--name=pod-www-nginx \
|
||||
docker.io/library/nginx
|
||||
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-www-nginx.ctr-id -t 10
|
||||
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-www-nginx.ctr-id
|
||||
PIDFile=%t/container-www-nginx.pid
|
||||
|
Loading…
Reference in New Issue
Block a user