/
nemea-dashboard.service
31 lines (27 loc) · 1.08 KB
/
nemea-dashboard.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# It's not recommended to modify this file in-place, because it will be
# overwritten during package upgrades. If you want to customize, the best
# way is to create a file "/etc/systemd/system/nemea-dashboard.service",
# containing
# .include /lib/systemd/system/nemea-dashboard.service
# ...make your changes here...
# For more info about custom unit files, see
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
#
# For example, to pass additional options (for instance, -D definitions) to the
# dashboard api script at startup, you need to create a file named
# "/etc/systemd/system/nemea-dashboard.service" containing:
# .include /lib/systemd/system/nemea-dashboard.service
# [Service]
# Environment=OPTIONS=-DMY_DEFINE
[Unit]
Description=Nemea Dashboard
After=network.target local-fs.target remote-fs.target mongod.service
Requires=mongod.service
[Service]
Type=simple
ExecStart=/var/www/html/Nemea-Dashboard/api/apiv2.py
PIDFile=/var/run/nemea-dashboard.pid
User=nemead
Group=nemead
[Install]
WantedBy=multi-user.target