Added systemd unit files

This commit is contained in:
Sebastian 2017-05-24 00:13:30 +02:00
parent 333736c094
commit 046f9b0d9c
3 changed files with 36 additions and 0 deletions

13
systemd/romstore.service Normal file
View File

@ -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

11
systemd/romstore.socket Normal file
View File

@ -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

12
systemd/systemd_uwsgi.ini Normal file
View File

@ -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