annotate odfcast.service @ 101:779abdc03d67 tip

Added tag 1.6.0 for changeset bf1a998fff48
author Bernhard Herzog <bh@intevation.de>
date Tue, 26 Jun 2018 22:39:10 +0200
parents bf1a998fff48
children
rev   line source
100
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
1 [Unit]
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
2 Description=ODFCast
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
3 Wants=network.target
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
4
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
5 [Service]
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
6 User=odfcast
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
7 Group=odfcast
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
8 Restart=always
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
9 WorkingDirectory=/home/odfcast/odfcast/releases/current
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
10
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
11 # === Flask ===
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
12 # ExecStart=/home/odfcast/odfcast/env/bin/python3 main.py
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
13 # === eventlet ===
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
14 # ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
15 # --pythonpath ../../env/lib/python3.5/site-packages/ \
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
16 # --workers 3 --worker-class eventlet wsgi
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
17 # === gthread ===
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
18 ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
19 --pythonpath ../../env/lib/python3.5/site-packages/ \
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
20 --workers 3 --threads 4 --worker-class gthread odfcast:app
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
21
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
22 [Install]
bf1a998fff48 Add service file for running ODFCast via systemd.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
23 WantedBy=multi-user.target
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)