22 lines
455 B
SYSTEMD
22 lines
455 B
SYSTEMD
|
[Unit]
|
||
|
Description=A high performance web server and a reverse proxy server
|
||
|
After=network-online.target remote-fs.target nss-lookup.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
PIDFile=/run/nginx.pid
|
||
|
PrivateDevices=yes
|
||
|
PrivateTmp=true
|
||
|
SyslogLevel=err
|
||
|
|
||
|
ExecStart=/opt/nginx/usr/bin/nginx
|
||
|
ExecReload=/opt/nginx/usr/bin/nginx -s reload
|
||
|
Restart=on-failure
|
||
|
KillMode=mixed
|
||
|
KillSignal=SIGQUIT
|
||
|
TimeoutStopSec=5
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|