debian: use a uwsgi.ini file (#18525)
This commit is contained in:
parent
3038ab2d23
commit
4cdbfa58eb
|
@ -0,0 +1,21 @@
|
|||
[uwsgi]
|
||||
auto-procname = true
|
||||
procname-prefix-spaced = wcs
|
||||
|
||||
plugin = python
|
||||
module = wcs.wsgi:application
|
||||
|
||||
http-socket = /run/wcs/wcs.sock
|
||||
chmod-socket = 666
|
||||
vacuum = true
|
||||
|
||||
master = true
|
||||
processes = 5
|
||||
harakiri = 30
|
||||
enable-threads = true
|
||||
|
||||
buffer-size = 32768
|
||||
|
||||
if-file = /etc/wcs/uwsgi-local.ini
|
||||
include = /etc/wcs/uwsgi-local.ini
|
||||
endif =
|
|
@ -1,3 +1,4 @@
|
|||
debian/wcs-manage /usr/bin
|
||||
debian/settings.py /etc/wcs
|
||||
debian/uwsgi.ini /etc/wcs
|
||||
debian/debian_config.py /usr/lib/wcs
|
||||
|
|
|
@ -9,17 +9,7 @@ User=%p
|
|||
Group=%p
|
||||
ExecStartPre=/usr/bin/wcs-manage migrate
|
||||
ExecStartPre=/usr/bin/wcs-manage collectstatic
|
||||
ExecStart=/usr/bin/uwsgi \
|
||||
--http-socket /run/%p/%p.sock \
|
||||
--chmod-socket=666 \
|
||||
--processes 5 \
|
||||
--harakiri 30 \
|
||||
--enable-threads \
|
||||
--plugin python \
|
||||
--buffer-size 32768 \
|
||||
--vacuum \
|
||||
--master \
|
||||
--module %p.wsgi:application
|
||||
ExecStart=/usr/bin/uwsgi --init /etc/%p/uwsgi.ini
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillSignal=SIGQUIT
|
||||
PrivateTmp=true
|
||||
|
|
Loading…
Reference in New Issue