0001-add-deployment-with-uwsgi-13060.patch
debian/fargo.init | ||
---|---|---|
16 | 16 |
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
17 | 17 |
DESC="Document Box" |
18 | 18 |
NAME=fargo |
19 |
DAEMON=/usr/bin/gunicorn
|
|
19 |
DAEMON=/usr/bin/uwsgi
|
|
20 | 20 |
RUN_DIR=/run/$NAME |
21 | 21 |
PIDFILE=$RUN_DIR/$NAME.pid |
22 | 22 |
LOG_DIR=/var/log/$NAME |
... | ... | |
37 | 37 |
# Read configuration variable file if it is present |
38 | 38 |
[ -r /etc/default/$NAME ] && . /etc/default/$NAME |
39 | 39 | |
40 |
DAEMON_ARGS=${DAEMON_ARGS:-"--pid $PIDFILE \ |
|
41 |
--user $USER --group $GROUP \
|
|
42 |
--daemon \ |
|
43 |
--access-logfile $LOG_DIR/gunicorn-access.log \
|
|
44 |
--log-file $LOG_DIR/gunicorn-error.log \
|
|
45 |
--bind=$BIND \
|
|
46 |
--workers=$WORKERS \
|
|
47 |
--worker-class=sync \
|
|
48 |
--timeout=$TIMEOUT \
|
|
49 |
--name $NAME \
|
|
50 |
$NAME.wsgi:application"} |
|
40 |
DAEMON_ARGS=${DAEMON_ARGS:-"--pidfile $PIDFILE \
|
|
41 |
--uid $USER --gid $GROUP \
|
|
42 |
--daemonize $LOG_DIR/uwsgi.log \
|
|
43 |
--socket $BIND \
|
|
44 |
--processes $WORKERS \
|
|
45 |
--harakiri $TIMEOUT \
|
|
46 |
--enable-threads \
|
|
47 |
--plugin python \
|
|
48 |
--vacuum \
|
|
49 |
--master \
|
|
50 |
--module $NAME.wsgi:application"}
|
|
51 | 51 | |
52 | 52 |
# Load the VERBOSE setting and other rcS variables |
53 | 53 |
. /lib/init/vars.sh |
54 |
- |