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`