nginx.service 308 B

12345678910111213
  1. [Unit]
  2. Description=nginx.service
  3. After=network.target
  4. [Service]
  5. Type=forking
  6. ExecStart=/usr/local/nginx/nginxServer.sh start
  7. ExecStop=/usr/local/nginx/nginxServer.sh stop
  8. ExecReload=/usr/local/nginx/nginxServer.sh reload
  9. PIDFile=/usr/local/nginx/logs/nginx.pid
  10. User=root
  11. [Install]
  12. WantedBy=multi-user.target