Przeglądaj źródła

more comments added

Jiri Kuthan 23 lat temu
rodzic
commit
03404c5228
3 zmienionych plików z 17 dodań i 1 usunięć
  1. 7 0
      etc/sercheck
  2. 7 1
      etc/serstat
  3. 3 0
      etc/sr

+ 7 - 0
etc/sercheck

@@ -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

+ 7 - 1
etc/serstat

@@ -1,6 +1,12 @@
 #!/bin/sh
+#
+# $Id$
+#
+# 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

+ 3 - 0
etc/sr

@@ -1,5 +1,8 @@
 #!/bin/sh 
 #
+# $Id$
+#
+#
 # 3w-xxxx:      Starts the sip_router process
 #
 # Version:      @(#) /etc/rc.d/init.d/3w-xxxx