debian: update init.d script to use uwsgi ini file (#19319)
This commit is contained in:
parent
32d7fd745c
commit
4827e276c5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue