Mercurial > odfcast
comparison odfcast.service @ 100:bf1a998fff48 1.6.0
Add service file for running ODFCast via systemd.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 26 Jun 2018 21:48:01 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
99:349d49bb69f4 | 100:bf1a998fff48 |
---|---|
1 [Unit] | |
2 Description=ODFCast | |
3 Wants=network.target | |
4 | |
5 [Service] | |
6 User=odfcast | |
7 Group=odfcast | |
8 Restart=always | |
9 WorkingDirectory=/home/odfcast/odfcast/releases/current | |
10 | |
11 # === Flask === | |
12 # ExecStart=/home/odfcast/odfcast/env/bin/python3 main.py | |
13 # === eventlet === | |
14 # ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \ | |
15 # --pythonpath ../../env/lib/python3.5/site-packages/ \ | |
16 # --workers 3 --worker-class eventlet wsgi | |
17 # === gthread === | |
18 ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \ | |
19 --pythonpath ../../env/lib/python3.5/site-packages/ \ | |
20 --workers 3 --threads 4 --worker-class gthread odfcast:app | |
21 | |
22 [Install] | |
23 WantedBy=multi-user.target |