You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
346 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2014 OpenWrt.org
  3. START=60
  4. USE_PROCD=1
  5. PROG=/usr/bin/monit
  6. start_service() {
  7. [ -f /etc/monitrc ] || { echo "monit: /etc/monitrc is missing"; return 1; }
  8. chmod 0600 /etc/monitrc
  9. procd_open_instance
  10. # -I runs in foreground, as procd requires
  11. procd_set_param command "$PROG" -I
  12. procd_close_instance
  13. }