ignatenkobrain / rpms / nginx

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