summarylogtreecommitdiffstats
path: root/qaratms-nginx.service
blob: 3955a8392fefa27512b79866ecba5a86ae2da625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=QaraTMS web server and a reverse proxy server
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

[Service]
Slice=qaratms.slice
Type=forking
PIDFile=/run/nginx-qaratms.pid
#PIDFile=/run/nginx.pid
PrivateDevices=yes
PrivateTmp=true
SyslogLevel=err

ExecStart=/usr/bin/nginx -c /opt/QaraTMS/etc/nginx/nginx.conf
ExecReload=/usr/bin/nginx -s reload
Restart=on-failure
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5

[Install]
WantedBy=multi-user.target