Blame SOURCES/nginx.service

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