zyre-gateway.service.j2 452 Bytes
Newer Older
Alexander Withers's avatar
Alexander Withers committed
1
2
3
4
5
6
7
8
[Unit]
Description=zyre-gateway service

[Service]
Type=simple
User={{ app_user }}
Group={{ app_user }}
PIDFile=/run/zyre-gateway.pid
Alexander Withers's avatar
Alexander Withers committed
9
10
#ExecStart=/usr/local/gateway/gateway {{ ansible_hostname }}
ExecStart=/usr/local/gateway/gateway {{ ansible_fqdn }}
Alexander Withers's avatar
Alexander Withers committed
11
12
13
14
15
16
17
18
19
20
21
KillMode=process
Restart=on-failure
KillSignal=SIGINT
TimeoutStopSec=5
PrivateTmp=true
WorkingDirectory=/usr/local/gateway

EnvironmentFile=-/etc/zyre_gateway.env

[Install]
WantedBy=multi-user.target