Saltstack Official Nginx Formula
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.

24 lines
371B

  1. # nginx
  2. description "nginx http daemon"
  3. author "George Shammas <georgyo@gmail.com>"
  4. start on (filesystem and net-device-up IFACE=lo)
  5. stop on runlevel [!2345]
  6. env DAEMON=/usr/sbin/nginx
  7. expect fork
  8. respawn
  9. respawn limit 10 5
  10. #oom never
  11. pre-start script
  12. $DAEMON -t
  13. if [ $? -ne 0 ]
  14. then exit $?
  15. fi
  16. end script
  17. exec $DAEMON