You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chukwa.apache.org by ey...@apache.org on 2009/03/31 02:38:03 UTC

svn commit: r760277 - /hadoop/chukwa/trunk/bin/watchdog.sh

Author: eyang
Date: Tue Mar 31 00:38:02 2009
New Revision: 760277

URL: http://svn.apache.org/viewvc?rev=760277&view=rev
Log:
CHUKWA-58. Changed watchdog to look for CHUKWA_PID_DIR.

Modified:
    hadoop/chukwa/trunk/bin/watchdog.sh

Modified: hadoop/chukwa/trunk/bin/watchdog.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/watchdog.sh?rev=760277&r1=760276&r2=760277&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/watchdog.sh (original)
+++ hadoop/chukwa/trunk/bin/watchdog.sh Tue Mar 31 00:38:02 2009
@@ -30,7 +30,7 @@
 fi
 
 # monitor agent
-#pidFile=$CHUKWA_HOME/var/run/chukwa-$CHUKWA_IDENT_STRING-agent.sh.pid
+#pidFile=$CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-agent.sh.pid
 #if [ -f $pidFile ]; then
 #  pid=`head ${pidFile}`
 #  ChildPIDRunningStatus=`ps ax | grep agent.sh | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -42,7 +42,7 @@
 #fi
 
 # monitor collector
-pidFile=$CHUKWA_HOME/var/run/chukwa-$CHUKWA_IDENT_STRING-jettyCollector.sh.pid
+pidFile=$CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-jettyCollector.sh.pid
 if [ -f $pidFile ]; then
   pid=`head ${pidFile}`
   ChildPIDRunningStatus=`ps ax | grep jettyCollector.sh | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -54,7 +54,7 @@
 fi
 
 # monitor node activity data loader
-pidFile=$CHUKWA_HOME/var/run/PbsNodes-data-loader.pid
+pidFile=$CHUKWA_PID_DIR/PbsNodes-data-loader.pid
 if [ -f $pidFile ]; then
   pid=`head ${pidFile}`
   ChildPIDRunningStatus=`${JPS} | grep Exec | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -66,7 +66,7 @@
 fi
 
 # monitor system data loader
-#pidFile=$CHUKWA_HOME/var/run/Df-data-loader.pid
+#pidFile=$CHUKWA_PID_DIR/Df-data-loader.pid
 #if [ -f $pidFile ]; then
 #  pid=`head ${pidFile}`
 #  ChildPIDRunningStatus=`${JPS} | grep Exec | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -77,7 +77,7 @@
 #  fi
 #fi
 
-#pidFile=$CHUKWA_HOME/var/run/Iostat-data-loader.pid
+#pidFile=$CHUKWA_PID_DIR/Iostat-data-loader.pid
 #if [ -f $pidFile ]; then
 #  pid=`head ${pidFile}`
 #  ChildPIDRunningStatus=`${JPS} | grep Exec | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -88,7 +88,7 @@
 #  fi
 #fi
 
-#pidFile=$CHUKWA_HOME/var/run/Sar-data-loader.pid
+#pidFile=$CHUKWA_PID_DIR/Sar-data-loader.pid
 #if [ -f $pidFile ]; then
 #  pid=`head ${pidFile}`
 #  ChildPIDRunningStatus=`${JPS} | grep Exec | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -99,7 +99,7 @@
 #  fi
 #fi
 
-#pidFile=$CHUKWA_HOME/var/run/Top-data-loader.pid
+#pidFile=$CHUKWA_PID_DIR/Top-data-loader.pid
 #if [ -f $pidFile ]; then
 #  pid=`head ${pidFile}`
 #  ChildPIDRunningStatus=`${JPS} | grep Exec | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -111,7 +111,7 @@
 #fi
 
 # monitor torque data loader
-pidFile=$CHUKWA_HOME/var/run/TorqueDataLoader.pid
+pidFile=$CHUKWA_PID_DIR/TorqueDataLoader.pid
 if [ -f $pidFile ]; then
   pid=`head ${pidFile}`
   ChildPIDRunningStatus=`${JPS} | grep TorqueDataLoader | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -123,7 +123,7 @@
 fi
 
 # monitor dataSinkFiles.sh
-pidFile=$CHUKWA_HOME/var/run/chukwa-$CHUKWA_IDENT_STRING-processSinkFiles.sh.pid
+pidFile=$CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-processSinkFiles.sh.pid
 if [ -f $pidFile ]; then
   pid=`head ${pidFile}`
   ChildPIDRunningStatus=`ps ax | grep processSinkFiles.sh | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`
@@ -135,7 +135,7 @@
 fi
 
 # monitor dbAdmin.sh
-pidFile=$CHUKWA_HOME/var/run/chukwa-$CHUKWA_IDENT_STRING-dbAdmin.sh.pid
+pidFile=$CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-dbAdmin.sh.pid
 if [ -f $pidFile ]; then
   pid=`head ${pidFile}`
   ChildPIDRunningStatus=`ps ax | grep dbAdmin.sh | grep -v grep | grep -o "[^ ].*" | grep ${pid} | wc -l`