From 76418a39c40ba02f7e975204a019b77a8d7d3d6d Mon Sep 17 00:00:00 2001 From: Michal Bielicki Date: Thu, 29 Nov 2007 19:09:11 +0000 Subject: [PATCH] added script for monit for rpm distros git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6439 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- build/freeswitch.monitrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/freeswitch.monitrc diff --git a/build/freeswitch.monitrc b/build/freeswitch.monitrc new file mode 100644 index 0000000000..a182f744f4 --- /dev/null +++ b/build/freeswitch.monitrc @@ -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