ignatenkobrain / rpms / nginx

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