2
0

freeswitch.monitrc 772 B

123456789101112131415161718192021
  1. check process freeswitch with pidfile /opt/freeswitch/run/freeswitch.pid
  2. group voice
  3. start program = "/etc/init.d/freeswitch start"
  4. stop program = "/etc/init.d/freeswitch stop"
  5. if failed port 5060 type UDP then restart
  6. if 5 restarts within 5 cycles then timeout
  7. depends on freeswitch_bin
  8. depends on freeswitch_rc
  9. check file freeswitch_bin with path /opt/freeswitch/bin/freeswitch
  10. group voice
  11. if failed checksum then unmonitor
  12. if failed permission 755 then unmonitor
  13. if failed uid freeswitch then unmonitor
  14. check file freeswitch_rc with path /etc/init.d/freeswitch
  15. group voice
  16. if failed checksum then unmonitor
  17. if failed permission 755 then unmonitor
  18. if failed uid root then unmonitor
  19. if failed gid root then unmonitor