diff options
| author | Luc Didry <luc@didry.org> | 2019-05-16 21:22:21 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2019-05-21 10:46:41 +0200 |
| commit | abfaa9647cf0fd77e1f1a74415cf76ed178d9beb (patch) | |
| tree | 2b17c76ef2b05985180f288411dcbb92f9e84364 /conf | |
| parent | f2643b6508d6041c676d0e789ead26210bdecd81 (diff) | |
| download | ihatemoney-mirror-abfaa9647cf0fd77e1f1a74415cf76ed178d9beb.zip ihatemoney-mirror-abfaa9647cf0fd77e1f1a74415cf76ed178d9beb.tar.gz ihatemoney-mirror-abfaa9647cf0fd77e1f1a74415cf76ed178d9beb.tar.bz2 | |
conf: systemd: Add ihatemoney.service file
* Allow to use systemd services instead of supervisord
Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/ihatemoney.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/conf/ihatemoney.service b/conf/ihatemoney.service new file mode 100644 index 0000000..c6cbb3f --- /dev/null +++ b/conf/ihatemoney.service @@ -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 |
