Skip to content

Commit

Permalink
Fix signal handling
Browse files Browse the repository at this point in the history
This patch add `exec` to replace the shell running the `entrypoint.sh`
script by Prosody executable.

This allows Prosody to catch and handle correctly signals, notably
SIGTERM and SIGINT. Without it, Docker can't stop correctly the
container, resulting in a 10 s delay before it kills it.
  • Loading branch information
goffi-contrib committed Oct 10, 2020
1 parent 4878e32 commit cc88073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
prosodyctl register "$LOCAL" "$DOMAIN" "$PASSWORD"
fi

runuser -u prosody -- "$@"
exec runuser -u prosody -- "$@"

0 comments on commit cc88073

Please sign in to comment.