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:
parent
0c5d03a57c
commit
2d38ebc2df
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue