6d5d27
[Unit]
6d5d27
Description=The nginx HTTP and reverse proxy server
6d5d27
After=network.target remote-fs.target nss-lookup.target
6d5d27
6d5d27
[Service]
6d5d27
Type=forking
6d5d27
PIDFile=/run/nginx.pid
6d5d27
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong
6d5d27
# SELinux context. This might happen when running `nginx -t` from the cmdline.
6d5d27
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
6d5d27
ExecStartPre=/usr/bin/rm -f /run/nginx.pid
6d5d27
ExecStartPre=/usr/sbin/nginx -t
6d5d27
ExecStart=/usr/sbin/nginx
6d5d27
ExecReload=/bin/kill -s HUP $MAINPID
6d5d27
KillSignal=SIGQUIT
6d5d27
TimeoutStopSec=5
6d5d27
KillMode=mixed
6d5d27
PrivateTmp=true
6d5d27
6d5d27
[Install]
6d5d27
WantedBy=multi-user.target