update init.d script for gunicorn 0.13.4
This commit is contained in:
parent
eeb1260421
commit
74b259abfa
|
@ -26,8 +26,8 @@ PIDFILE=/var/run/$NAME/gunicorn.pid
|
|||
# use 4 workers
|
||||
DAEMON_ARGS="-D /home/docbow/source/docbow_project/settings/courrier.py -p $PIDFILE \
|
||||
-t 10800 \
|
||||
--error-log /var/log/$NAME/gunicorn.error.log \
|
||||
--access-log /var/log/$NAME/gunicorn.access.log \
|
||||
--error-logfile /var/log/$NAME/gunicorn.error.log \
|
||||
--access-logfile /var/log/$NAME/gunicorn.access.log \
|
||||
-w 4"
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
START_STOP_OPTIONS="--chuid docbow --group docbow"
|
||||
|
@ -61,9 +61,9 @@ do_start()
|
|||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE $START_STOP_OPTIONS --exec $DAEMON --test > /dev/null \
|
||||
start-stop-daemon --start --quiet $START_STOP_OPTIONS --exec $DAEMON --test > /dev/null \
|
||||
|| return 1
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE $START_STOP_OPTIONS --exec $DAEMON -- \
|
||||
start-stop-daemon --start --quiet $START_STOP_OPTIONS --exec $DAEMON -- \
|
||||
$DAEMON_ARGS \
|
||||
|| return 2
|
||||
# Add code here, if necessary, that waits for the process to be ready
|
||||
|
|
Loading…
Reference in New Issue