diff --git a/canto-docker-initd b/canto-docker-initd index cb987a8229bcc251a4bab4d3de23d92e0c7d634e..d83a4761207ef46c083ea4b8f950b769b5a01d04 100644 --- a/canto-docker-initd +++ b/canto-docker-initd @@ -7,7 +7,7 @@ action=$1 port=$2 WORKERS=5 -CANTO_SPACE='/data/export/canto-space/' +CANTO_SPACE='/data/export/canto-space' PID_PATH=import_export/canto.pid @@ -17,7 +17,7 @@ case "$action" in echo "Starting Canto with $WORKERS workers" - (date; cd $CANTO_SPACE; canto/script/canto_docker --non-interactive 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 -- script/canto_start --workers $WORKERS --keepalive-timeout 5 -s Starman --preload) >> canto.log 2>&1 & ;; stop) pid=`/bin/cat $CANTO_SPACE/$PID_PATH` @@ -35,4 +35,4 @@ case "$action" in ;; esac -exit 0 \ No newline at end of file +exit 0