forked from rpms/nginx
497c396bdb
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/nginx#bd726b71e50db2c0a3eabdfecd1ec3b8cfefeb08
22 lines
616 B
Desktop File
22 lines
616 B
Desktop File
[Unit]
|
|
Description=The nginx HTTP and reverse proxy server
|
|
After=network.target remote-fs.target nss-lookup.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/run/nginx.pid
|
|
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong
|
|
# SELinux context. This might happen when running `nginx -t` from the cmdline.
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
|
|
ExecStartPre=/usr/bin/rm -f /run/nginx.pid
|
|
ExecStartPre=/usr/sbin/nginx -t
|
|
ExecStart=/usr/sbin/nginx
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
KillSignal=SIGQUIT
|
|
TimeoutStopSec=5
|
|
KillMode=mixed
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|