Skip to content

Commit

Permalink
Fix messages on signals received
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrykuzmenkov committed Nov 2, 2015
1 parent fefc1ac commit 1b084f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ echo $$ > $PID_FILE
test -f $RELOAD_FILE && rm -f $_

trap "println 'Reloading task configs signal' && load_config" SIGUSR1
trap "println 'Exiting due to quit file' && echo 0 > $PID_FILE && exit 0" SIGTERM SIGINT SIGKILL
trap "println 'Exiting due to restart file' && { ( $0 > $LOG_FILE & ) & } && exit 0" SIGHUP
trap "println 'Exiting due to quit signal' && echo 0 > $PID_FILE && exit 0" SIGTERM SIGINT SIGKILL
trap "println 'Exiting due to restart signal' && { ( $0 > $LOG_FILE & ) & } && exit 0" SIGHUP

load_config
while true; do
Expand Down

0 comments on commit 1b084f2

Please sign in to comment.