Blame SOURCES/nginx.service

36d786
[Unit]
36d786
Description=The nginx HTTP and reverse proxy server
36d786
After=syslog.target network.target remote-fs.target nss-lookup.target
36d786
36d786
[Service]
36d786
Type=forking
36d786
PIDFile=$localstatedir/run/nginx/nginx.pid
36d786
EnvironmentFile=/opt/rh/rh-nginx110/service-environment
36d786
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong
36d786
# SELinux context. This might happen when running `nginx -t` from the cmdline.
36d786
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
36d786
ExecStartPre=/usr/bin/rm -f /var/opt/rh/rh-nginx110/run/nginx/nginx.pid
36d786
ExecStartPre=$libexecdir/nginx-scl-helper enable $RH_NGINX110_SCLS_ENABLED -- /usr/bin/scl_enabled rh-nginx110
36d786
ExecStartPre=$libexecdir/nginx-scl-helper enable $RH_NGINX110_SCLS_ENABLED -- /opt/rh/rh-nginx110/root/usr/sbin/nginx -t
36d786
ExecStart=$libexecdir/nginx-scl-helper enable $RH_NGINX110_SCLS_ENABLED -- /opt/rh/rh-nginx110/root/usr/sbin/nginx
36d786
ExecReload=/bin/kill -s HUP $MAINPID
36d786
ExecStop=/bin/kill -s QUIT $MAINPID
36d786
KillSignal=SIGQUIT
36d786
TimeoutStopSec=5
36d786
KillMode=process
36d786
PrivateTmp=true
36d786
36d786
[Install]
36d786
WantedBy=multi-user.target