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
|
2021-04-21 01:59:53 +00:00
|
|
|
After=network-online.target remote-fs.target nss-lookup.target
|
|
|
|
Wants=network-online.target
|
2012-02-22 15:15:49 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2012-03-04 17:57:56 +00:00
|
|
|
PIDFile=/run/nginx.pid
|
2015-10-04 07:32:14 +00:00
|
|
|
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong
|
|
|
|
# SELinux context. This might happen when running `nginx -t` from the cmdline.
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
|
|
|
|
ExecStartPre=/usr/bin/rm -f /run/nginx.pid
|
2012-05-16 21:11:49 +00:00
|
|
|
ExecStartPre=/usr/sbin/nginx -t
|
|
|
|
ExecStart=/usr/sbin/nginx
|
2021-04-21 15:47:30 +00:00
|
|
|
ExecReload=/usr/sbin/nginx -s reload
|
2015-06-14 17:03:15 +00:00
|
|
|
KillSignal=SIGQUIT
|
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
|