From abfaa9647cf0fd77e1f1a74415cf76ed178d9beb Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 16 May 2019 21:22:21 +0200 Subject: [PATCH] conf: systemd: Add ihatemoney.service file * Allow to use systemd services instead of supervisord Signed-off-by: nailyk-fr --- conf/ihatemoney.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 conf/ihatemoney.service diff --git a/conf/ihatemoney.service b/conf/ihatemoney.service new file mode 100644 index 00000000..c6cbb3ff --- /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