2016-05-09 17:31:29 +02:00
|
|
|
[Unit]
|
|
|
|
Description=The NGINX HTTP and reverse proxy server
|
|
|
|
After=syslog.target network.target remote-fs.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
PIDFile=/run/nginx.pid
|
|
|
|
ExecStartPre=/usr/sbin/nginx -t
|
|
|
|
ExecStart=/usr/sbin/nginx
|
2016-05-25 13:02:43 +02:00
|
|
|
ExecReload=/usr/sbin/nginx -s reload
|
2016-05-09 17:31:29 +02:00
|
|
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
2016-05-25 12:57:25 +02:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=10s
|
2016-05-09 17:31:29 +02:00
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
2016-05-25 12:57:25 +02:00
|
|
|
WantedBy=multi-user.target
|