php.sh 240 B

12345678910111213141516171819
  1. #!/usr/bin/env sh
  2. set -e
  3. PHP="php-fpm"
  4. start_php()
  5. {
  6. # 使用exec 将替换主进程,信号检测将失效,无法执行end_php
  7. #exec php-fpm
  8. process_start $PHP
  9. }
  10. stop_php()
  11. {
  12. process_stop $PHP
  13. }
  14. monit_php()
  15. {
  16. process_monit $PHP
  17. }