Skip to content

Commit

Permalink
Add exec start reload, for running serve command after re-loading ntf…
Browse files Browse the repository at this point in the history
…y service
  • Loading branch information
compgeniuses committed Mar 6, 2024
1 parent d3ca225 commit 8702875
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imageroot/systemd/user/ntfy-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/ntfy-app.pid \
${NTFY_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/ntfy-app.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP ntfy-app
ExecReload=bash -c "while ! /usr/bin/podman exec ntfy-app serve; do sleep 1 ; done"
SyslogIdentifier=%u
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/ntfy-app.ctr-id
PIDFile=%t/ntfy-app.pid
Expand Down

0 comments on commit 8702875

Please sign in to comment.