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

1234567891011121314151617181920212223
  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