2017-01-19 17:48:24 +02:00
|
|
|
[Unit]
|
|
|
|
Description=A high performance web server and a reverse proxy server
|
2017-08-14 10:28:47 +03:00
|
|
|
After=network.target network-online.target nss-lookup.target
|
2017-01-19 17:48:24 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
PIDFile=/run/nginx.pid
|
2017-04-14 16:51:33 +03:00
|
|
|
PrivateDevices=yes
|
|
|
|
SyslogLevel=err
|
|
|
|
|
|
|
|
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
|
2019-08-07 14:28:23 +03:00
|
|
|
ExecReload=-/usr/bin/sh -c '/usr/bin/nginx -t && /usr/bin/nginx -s reload'
|
2017-04-14 16:51:33 +03:00
|
|
|
KillSignal=SIGQUIT
|
|
|
|
KillMode=mixed
|
2017-01-19 17:48:24 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|