tools/docbow.init: use gunicorn to do the chuid not start-stop-daemon (allow to bind on the port 80)

This commit is contained in:
Benjamin Dauvergne 2014-01-24 15:49:01 +01:00
parent e260776938
commit 2be10c597d
1 changed files with 2 additions and 1 deletions

View File

@ -27,11 +27,12 @@ PIDFILE=/var/run/$NAME/gunicorn.pid
# use 4 workers
DAEMON_ARGS="-D -p $PIDFILE \
-t 10800 \
-u docbow
-g docbow
--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"
export PYTHONPATH=/etc/docbow:/home/docbow/source/
export LANG=fr_FR.UTF-8