ignatenkobrain / rpms / nginx

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