ignatenkobrain / rpms / nginx

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