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