This commit is contained in:
parent
bd8a6e32b6
commit
0e9226ec0d
|
@ -28,6 +28,7 @@ Depends: ${misc:Depends},
|
||||||
python3-django-tenant-schemas,
|
python3-django-tenant-schemas,
|
||||||
python3-psycopg2,
|
python3-psycopg2,
|
||||||
python3-django-mellon,
|
python3-django-mellon,
|
||||||
|
python3-uwsgidecorators,
|
||||||
uwsgi,
|
uwsgi,
|
||||||
uwsgi-plugin-python3
|
uwsgi-plugin-python3
|
||||||
Recommends: nginx, graphicsmagick
|
Recommends: nginx, graphicsmagick
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/etc/fargo
|
/etc/fargo
|
||||||
/usr/lib/fargo
|
/usr/lib/fargo
|
||||||
/var/lib/fargo/collectstatic
|
/var/lib/fargo/collectstatic
|
||||||
|
/var/lib/fargo/spooler
|
||||||
/var/lib/fargo/tenants
|
/var/lib/fargo/tenants
|
||||||
/var/log/fargo
|
/var/log/fargo
|
||||||
|
|
|
@ -38,6 +38,7 @@ GROUP=$NAME
|
||||||
DAEMON_ARGS=${DAEMON_ARGS:-"--pidfile=$PIDFILE
|
DAEMON_ARGS=${DAEMON_ARGS:-"--pidfile=$PIDFILE
|
||||||
--uid $USER --gid $GROUP
|
--uid $USER --gid $GROUP
|
||||||
--ini /etc/$NAME/uwsgi.ini
|
--ini /etc/$NAME/uwsgi.ini
|
||||||
|
--spooler /var/lib/$NAME/spooler/
|
||||||
--daemonize /var/log/uwsgi.$NAME.log"}
|
--daemonize /var/log/uwsgi.$NAME.log"}
|
||||||
|
|
||||||
# Load the VERBOSE setting and other rcS variables
|
# Load the VERBOSE setting and other rcS variables
|
||||||
|
|
|
@ -20,6 +20,7 @@ case "$1" in
|
||||||
# ensure dirs ownership
|
# ensure dirs ownership
|
||||||
chown $USER:$GROUP /var/log/$NAME
|
chown $USER:$GROUP /var/log/$NAME
|
||||||
chown $USER:$GROUP /var/lib/$NAME/collectstatic
|
chown $USER:$GROUP /var/lib/$NAME/collectstatic
|
||||||
|
chown $USER:$GROUP /var/lib/$NAME/spooler
|
||||||
chown $USER:$GROUP /var/lib/$NAME/tenants
|
chown $USER:$GROUP /var/lib/$NAME/tenants
|
||||||
# create a secret file
|
# create a secret file
|
||||||
SECRET_FILE=$CONFIG_DIR/secret
|
SECRET_FILE=$CONFIG_DIR/secret
|
||||||
|
|
|
@ -10,7 +10,8 @@ User=%p
|
||||||
Group=%p
|
Group=%p
|
||||||
ExecStartPre=/usr/bin/fargo-manage migrate_schemas --noinput --verbosity 1
|
ExecStartPre=/usr/bin/fargo-manage migrate_schemas --noinput --verbosity 1
|
||||||
ExecStartPre=/usr/bin/fargo-manage collectstatic --noinput
|
ExecStartPre=/usr/bin/fargo-manage collectstatic --noinput
|
||||||
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini
|
ExecStartPre=/bin/mkdir -p /var/lib/fargo/spooler/%m/
|
||||||
|
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini --spooler /var/lib/fargo/spooler/%m/
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
|
|
|
@ -12,6 +12,9 @@ http-socket = /run/fargo/fargo.sock
|
||||||
chmod-socket = 666
|
chmod-socket = 666
|
||||||
vacuum = true
|
vacuum = true
|
||||||
|
|
||||||
|
spooler-processes = 3
|
||||||
|
spooler-max-tasks = 20
|
||||||
|
|
||||||
master = true
|
master = true
|
||||||
enable-threads = true
|
enable-threads = true
|
||||||
harakiri = 120
|
harakiri = 120
|
||||||
|
|
Loading…
Reference in New Issue