Skip to content

Commit

Permalink
Fix shutdown signals for canto_start
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford authored Jul 28, 2021
1 parent 652a2dc commit 8748bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/canto-docker-initd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi
case "$action" in
start)
echo "Starting Canto with $WORKERS workers"
(date; cd $CANTO_SPACE; canto/script/canto_docker --non-interactive --use-container-name start_server --pid-file=/$PID_PATH --port $PORT -- script/canto_start --workers $WORKERS --keepalive-timeout 5 -s Starman --preload) >> canto.log 2>&1 &
(date; cd $CANTO_SPACE; canto/script/canto_docker --non-interactive --use-container-name start_server --pid-file=/$PID_PATH --port $PORT --signal-on-hup=QUIT --signal-on-term=QUIT -- script/canto_start --workers $WORKERS --keepalive-timeout 5 -s Starman) >> canto.log 2>&1 &
;;
stop)
pid=`/bin/cat $CANTO_SPACE/$PID_PATH`
Expand Down

0 comments on commit 8748bc9

Please sign in to comment.