2017-09-15 11:21:12 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Start WebODM Nginx Service Container
|
2018-06-30 18:48:13 +00:00
|
|
|
After=syslog.target network.target remote-fs.target nss-lookup.target
|
2017-09-15 11:21:12 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2018-06-30 21:07:57 +00:00
|
|
|
PIDFile=/run/nginx.pid
|
2018-06-30 18:48:13 +00:00
|
|
|
ExecStartPre=/usr/sbin/nginx -t -c /webodm/nginx/nginx.conf
|
2017-09-15 11:21:12 +00:00
|
|
|
ExecStart=/usr/sbin/nginx -c /webodm/nginx/nginx.conf
|
2018-06-30 18:48:13 +00:00
|
|
|
ExecReload=/usr/sbin/nginx -s reload
|
|
|
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
|
|
|
PrivateTmp=true
|
2017-09-15 11:21:12 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|