You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
435 B

  1. [Unit]
  2. Description=A high performance web server and a reverse proxy server
  3. After=network.target network-online.target nss-lookup.target
  4. [Service]
  5. Type=forking
  6. PIDFile=/run/nginx.pid
  7. PrivateDevices=yes
  8. SyslogLevel=err
  9. ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
  10. ExecReload=-/usr/bin/sh -c '/usr/bin/nginx -t && /usr/bin/nginx -s reload'
  11. KillSignal=SIGQUIT
  12. KillMode=mixed
  13. [Install]
  14. WantedBy=multi-user.target