d1fd6c2b93
sync with mainline spec file order configure options alphabetically for easier comparinggit add --with-compat option (rhbz#1834452) add patch to fix PIDFile race condition (rhbz#1869026) use pcre2 instead of pcre (rhbz#1938984) add Wants=network-online.target to systemd unit (rhbz#1943779)
23 lines
651 B
Desktop File
23 lines
651 B
Desktop File
[Unit]
|
|
Description=The nginx HTTP and reverse proxy server
|
|
After=network-online.target remote-fs.target nss-lookup.target
|
|
Wants=network-online.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
|