linux - systemd unit file
This commit is contained in:
parent
f9d4e90894
commit
57e4247eab
|
@ -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…
Reference in New Issue