ignatenkobrain / rpms / nginx

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