@@ -1,4 +1,11 @@
#!/bin/sh
+#
+# $Id$
+# use to check whether all ser processes are running; if not, restart
+# and issue an alert; run from cron daemon for best results :-)
+
[email protected]
SERDIR=/home/srouter/sip_router
@@ -1,6 +1,12 @@
+# check current status of ser: print running processes and
+# -- if in possession of MySql password -- dump USRLOC database
+# as well
-#ps -ef|grep '/sr'| grep -v grep
PIDS=`ps --no-headers -o "pid" -C sr`
for i in $PIDS ; do
ps -o "pid,user,group,euser,egroup,fuser,fgroup,args" $i
@@ -1,5 +1,8 @@
#
# 3w-xxxx: Starts the sip_router process
# Version: @(#) /etc/rc.d/init.d/3w-xxxx