Blame SOURCES/nginx.service

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