monit.init 239 B

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