-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnemea-supervisor.service.in
37 lines (33 loc) · 1.36 KB
/
nemea-supervisor.service.in
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
31
32
33
34
35
36
# 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/httpd.service",
# containing
# .include /lib/systemd/system/nemea-supervisor.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
# supervisor binary at startup, you need to create a file named
# "/etc/systemd/system/nemea-supervisor.service" containing:
# .include /lib/systemd/system/nemea-supervisor.service
# [Service]
# Environment=OPTIONS=-DMY_DEFINE
[Unit]
Description=Nemea Supervisor
After=network.target local-fs.target remote-fs.target
[Service]
Type=forking
Environment=LANG=C
Environment=CONFIG_FILE="/etc/nemea/supervisor_config_template.xml"
Environment=LOGDIR="/var/log/nemea-supervisor"
User=nemead
Group=nemead
ExecStart=/usr/bin/nemea/supervisor --daemon -T "$CONFIG_FILE" -L "$LOGDIR"
ExecReload=/usr/bin/nemea/supervisor_cli -r
PrivateTmp=false
PermissionsStartOnly=true
ExecStartPre=/usr/bin/mkdir -p /var/run/nemea-supervisor
ExecStartPre=/usr/bin/chown -R nemead:nemead /var/run/nemea-supervisor
[Install]
WantedBy=multi-user.target