Added systemd unit files
This commit is contained in:
parent
333736c094
commit
046f9b0d9c
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=romstore uWSGI app
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/romstore/gulasch-r0mstore/virtenv/bin/uwsgi \
|
||||
--ini /home/romstore/gulasch-r0mstore/uwsgi.ini
|
||||
|
||||
Restart=on-failure
|
||||
KillSignal=SIGQUIT
|
||||
Type=notify
|
||||
StandardError=syslog
|
||||
NotifyAccess=all
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Socket for romstore uWSGI
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/uwsgi/romstore.socket
|
||||
SocketUser=romstore
|
||||
SocketGroup=www-data
|
||||
SocketMode=0666
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
|
@ -0,0 +1,12 @@
|
|||
[uwsgi]
|
||||
chdir=/home/romstore/gulasch-r0mstore/
|
||||
home=/home/romstore/gulasch-r0mstore/virtenv
|
||||
module=gulaschromstore.wsgi:application
|
||||
master=True
|
||||
socket=/var/run/uwsgi/romstore.socket
|
||||
processes=5
|
||||
harakiri=20
|
||||
max-requests=5000
|
||||
vacuum=True
|
||||
max-requests=5000
|
||||
env = LANG=de_DE.UTF-8
|
Loading…
Reference in New Issue