mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
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:
parent
f2643b6508
commit
abfaa9647c
1 changed files with 14 additions and 0 deletions
14
conf/ihatemoney.service
Normal file
14
conf/ihatemoney.service
Normal 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
|
Loading…
Reference in a new issue