2012-02-22 15:15:49 +00:00
|
|
|
[Unit]
|
2012-05-16 21:11:49 +00:00
|
|
|
Description=The nginx HTTP and reverse proxy server
|
|
|
|
After=syslog.target network.target remote-fs.target nss-lookup.target
|
2012-02-22 15:15:49 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2012-03-04 17:57:56 +00:00
|
|
|
PIDFile=/run/nginx.pid
|
2012-05-16 21:11:49 +00:00
|
|
|
ExecStartPre=/usr/sbin/nginx -t
|
|
|
|
ExecStart=/usr/sbin/nginx
|
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
2015-05-10 08:06:20 +00:00
|
|
|
TimeoutStopSec=5
|
|
|
|
KillMode=mixed
|
2012-05-16 21:11:49 +00:00
|
|
|
PrivateTmp=true
|
2012-02-22 15:15:49 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|