nginx.service 538 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=nginx - high performance web server
  3. Documentation=http://nginx.org/en/docs/
  4. After=network.target
  5. [Service]
  6. Type=forking
  7. PIDFile=/var/run/nginx.pid
  8. ExecStartPost=/bin/sleep 0.1
  9. ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
  10. ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
  11. ExecReload=/bin/kill -s HUP $MAINPID
  12. ExecStop=/bin/kill -s QUIT $MAINPID
  13. TimeoutStartSec=120
  14. LimitNOFILE=1000000
  15. LimitNPROC=1000000
  16. LimitCORE=1000000
  17. [Install]
  18. WantedBy=multi-user.target