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