Blame SOURCES/nginx.service

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