nginx-debug.service 475 B

123456789101112131415
  1. [Unit]
  2. Description=nginx - high performance web server
  3. Documentation=http://nginx.org/en/docs/
  4. After=network-online.target remote-fs.target nss-lookup.target
  5. Wants=network-online.target
  6. [Service]
  7. Type=forking
  8. PIDFile=/var/run/nginx.pid
  9. ExecStart=/usr/sbin/nginx-debug -c /etc/nginx/nginx.conf
  10. ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /var/run/nginx.pid)"
  11. ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /var/run/nginx.pid)"
  12. [Install]
  13. WantedBy=multi-user.target