ignatenkobrain / rpms / nginx

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