Blame SOURCES/nginx.service

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