linux - systemd unit file
This commit is contained in:
parent
f9d4e90894
commit
57e4247eab
15
misc/nginx.service
Normal file
15
misc/nginx.service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=bunkerized-nginx - web services security
|
||||||
|
Documentation=https://bunkerized-nginx.readthedocs.io
|
||||||
|
After=network-online.target remote-fs.target nss-lookup.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
PIDFile=/tmp/nginx.pid
|
||||||
|
ExecStart=/usr/sbin/nginx -g 'daemon on; user nginx;'
|
||||||
|
ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /tmp/nginx.pid)"
|
||||||
|
ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /tmp/nginx.pid)"
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
x
Reference in New Issue
Block a user