debian: update init.d script to use uwsgi ini file (#19319)

This commit is contained in:
Frédéric Péters 2017-10-09 22:40:40 +02:00 committed by Thomas NOEL
parent 32d7fd745c
commit 4827e276c5
1 changed files with 5 additions and 16 deletions

21
debian/wcs.init vendored
View File

@ -40,21 +40,10 @@ GROUP=$NAME
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
DAEMON_ARGS=${DAEMON_ARGS:-"--pidfile=$PIDFILE \
--uid $USER \
--gid $GROUP \
--http-socket $BIND \
--chmod-socket=666 \
--processes $WORKERS \
--harakiri $TIMEOUT \
--enable-threads \
--plugin python \
--buffer-size 32768 \
--vacuum \
--master \
--module $NAME.wsgi:application \
--daemonize /var/log/uwsgi.wss.log
"}
DAEMON_ARGS=${DAEMON_ARGS:-"--pidfile=$PIDFILE
--uid $USER --gid $GROUP
--ini /etc/$NAME/uwsgi.ini
--daemonize /var/log/uwsgi.$NAME.log"}
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
@ -123,7 +112,7 @@ do_reload() {
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
#
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name `basename $DAEMON`
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE
return 0
}