2007-11-29 14:59:46 -05:00
|
|
|
check process freeswitch with pidfile /opt/freeswitch/log/freeswitch.pid
|
2007-11-27 17:51:17 -05:00
|
|
|
group voice
|
|
|
|
start program = "/etc/init.d/freeswitch start"
|
|
|
|
stop program = "/etc/init.d/freeswitch stop"
|
2008-07-08 05:49:53 -04:00
|
|
|
# Checks sip port on localhost, not wlways suitable
|
|
|
|
# if failed port 5060 type UDP then restart
|
|
|
|
# Checks mod_event_socket on localhost. Maybe more suitable
|
|
|
|
if failed port 8021 type TCP then restart
|
2007-11-27 17:51:17 -05:00
|
|
|
if 5 restarts within 5 cycles then timeout
|
|
|
|
depends on freeswitch_bin
|
|
|
|
depends on freeswitch_rc
|
|
|
|
|
|
|
|
check file freeswitch_bin with path /opt/freeswitch/bin/freeswitch
|
|
|
|
group voice
|
|
|
|
if failed checksum then unmonitor
|
2008-07-08 05:49:53 -04:00
|
|
|
if failed permission 750 then unmonitor
|
2007-11-27 17:51:17 -05:00
|
|
|
if failed uid freeswitch then unmonitor
|
2008-07-08 05:49:53 -04:00
|
|
|
# if failed gid daemon then unmonitor
|
2007-11-27 17:51:17 -05:00
|
|
|
|
2007-11-29 14:59:46 -05:00
|
|
|
check file freeswitch_rc with path /etc/init.d/freeswitch
|
2007-11-27 17:51:17 -05:00
|
|
|
group voice
|
|
|
|
if failed checksum then unmonitor
|
|
|
|
if failed permission 755 then unmonitor
|
|
|
|
if failed uid root then unmonitor
|
|
|
|
if failed gid root then unmonitor
|