From fe5b0a1b78903cf7094bec36477bdab472d8a995 Mon Sep 17 00:00:00 2001 From: Kim Rutherford Date: Tue, 27 Jul 2021 23:54:12 +1200 Subject: [PATCH] Fix shutdown signals for canto_start Refs pombase/canto#2478 --- etc/canto-docker-initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/canto-docker-initd b/etc/canto-docker-initd index a4eb8d651..f6e01a0d1 100755 --- a/etc/canto-docker-initd +++ b/etc/canto-docker-initd @@ -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`