ignatenkobrain / rpms / nginx

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