Browse code

more comments added

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