[Freeswitch-trunk] [commit] r6439 - freeswitch/trunk/build

Freeswitch SVN cypromis at freeswitch.org
Thu Nov 29 14:09:11 EST 2007


Author: cypromis
Date: Thu Nov 29 14:09:11 2007
New Revision: 6439

Added:
   freeswitch/trunk/build/freeswitch.monitrc

Log:
added script for monit for rpm distros


Added: freeswitch/trunk/build/freeswitch.monitrc
==============================================================================
--- (empty file)
+++ freeswitch/trunk/build/freeswitch.monitrc	Thu Nov 29 14:09:11 2007
@@ -0,0 +1,22 @@
+ check process freeswitch with pidfile /var/run/freeswitch.pid
+   group voice
+   start program = "/etc/init.d/freeswitch start"
+   stop  program = "/etc/init.d/freeswitch stop"
+   if failed port 5060 type UDP than 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 755 then unmonitor
+   if failed uid freeswitch then unmonitor
+   if failed gid daemon then unmonitor
+
+ check file sendmail_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



More information about the Freeswitch-trunk mailing list