Skip to content

Commit

Permalink
Ignore write-hosts exit code (#57)
Browse files Browse the repository at this point in the history
Ensure any possible write-hosts failure does not affect the Traefik service.
  • Loading branch information
DavidePrincipi committed May 13, 2024
1 parent d044619 commit 39e52d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/systemd/user/traefik.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ExecStart=/usr/bin/podman run \
--volume=./configs:/etc/traefik/configs:Z \
--volume=./custom_certificates:/etc/traefik/custom_certificates:Z \
${TRAEFIK_IMAGE}
ExecStartPost=runagent write-hosts
ExecStartPost=-runagent write-hosts
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/traefik.ctr-id -t 15
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/traefik.ctr-id
PIDFile=%t/traefik.pid
Expand Down

0 comments on commit 39e52d1

Please sign in to comment.