monit.init 214 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #FWINIT 10
  3. case $1 in
  4. autostop) ;;
  5. autostart|start)
  6. monit $monit_flags
  7. ;;
  8. stop)
  9. killall monit
  10. ;;
  11. restart)
  12. sh $0 stop
  13. sh $0 start
  14. ;;
  15. *)
  16. echo "usage: $0 (start|stop|restart)"
  17. exit 1
  18. esac
  19. exit $?