freeswitch/debian/monit/freeswitch.monitrc
Massimo Cetra e3dedc4f33 Debian build scripts updates.
* Updated revision number
   * Fixed init problem reported by Jay Binks (FSSCRIPTS-1)
   * Added a patch to the debian build system add more features (thanks to Hadley Rich) (FSBUILD-45)
     - Added en-us-callie sounds and music on hold packages
     - Added recommends and suggests
     - Added mod_say_es and mod_say_nl
     - Updated descriptions
     - Added mod_cdr_csv
   * Fixed typos and some errors in the previus patch.
   * Modified monit script. Now it should work.
   * The debian build system now bootstrap automagically if it's necessary and all scripts are in place.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8926 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-08 09:49:53 +00:00

26 lines
970 B
Plaintext

check process freeswitch with pidfile /opt/freeswitch/log/freeswitch.pid
group voice
start program = "/etc/init.d/freeswitch start"
stop program = "/etc/init.d/freeswitch stop"
# 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
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
if failed permission 750 then unmonitor
if failed uid freeswitch then unmonitor
# if failed gid daemon then unmonitor
check file freeswitch_rc with path /etc/init.d/freeswitch
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