conf: systemd: Add ihatemoney.service file

* Allow to use systemd services instead of supervisord

Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
This commit is contained in:
Luc Didry 2019-05-16 21:22:21 +02:00 committed by Alexis Metaireau
parent f2643b6508
commit abfaa9647c

14
conf/ihatemoney.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=I hate money
Requires=network.target postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
User=ihatemoney
WorkingDirectory=/var/lib/ihatemoney
ExecStart=/var/lib/ihatemoney/bin/gunicorn -c /etc/ihatemoney/gunicorn.conf.py ihatemoney.wsgi:application
SyslogIdentifier=ihatemoney
[Install]
WantedBy=multi-user.target