Saltstack Official Nginx Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
383B

  1. # nginx
  2. description "nginx http daemon"
  3. author "George Shammas <georgyo@gmail.com>"
  4. start on (runlevel [345] and started network)
  5. stop on (runlevel [!345] or stopping network)
  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