chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r930452 - in /hadoop/chukwa/trunk/bin: chukwa stop-data-processors.sh
Date Sat, 03 Apr 2010 00:53:57 GMT
Author: eyang
Date: Sat Apr  3 00:53:57 2010
New Revision: 930452

URL: http://svn.apache.org/viewvc?rev=930452&view=rev
Log:
CHUKWA-468. Use SIGHUP instead of SIGTERM for shutdown.  (Eric Yang)

Modified:
    hadoop/chukwa/trunk/bin/chukwa
    hadoop/chukwa/trunk/bin/stop-data-processors.sh

Modified: hadoop/chukwa/trunk/bin/chukwa
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/chukwa?rev=930452&r1=930451&r2=930452&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/chukwa (original)
+++ hadoop/chukwa/trunk/bin/chukwa Sat Apr  3 00:53:57 2010
@@ -153,7 +153,7 @@ elif [ "$COMMAND" = "tail" ]; then
 fi
 
 if [ "$1" = "stop" ]; then
-  kill -TERM `cat ${CHUKWA_PID_DIR}/$PID.pid`
+  kill -1 `cat ${CHUKWA_PID_DIR}/$PID.pid`
 else 
   # run command
   if [ "$BACKGROUND" = "false" ]; then

Modified: hadoop/chukwa/trunk/bin/stop-data-processors.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/stop-data-processors.sh?rev=930452&r1=930451&r2=930452&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/stop-data-processors.sh (original)
+++ hadoop/chukwa/trunk/bin/stop-data-processors.sh Sat Apr  3 00:53:57 2010
@@ -26,12 +26,12 @@ pidFile=$CHUKWA_PID_DIR/DemuxManager.pid
 if [ -f $pidFile ]; then
    echo -n "Shutting down demux.."
    DEMUX_PID=`head ${pidFile}`
-   kill -TERM ${DEMUX_PID} > /dev/null 2>&1
+   kill -1 ${DEMUX_PID} > /dev/null 2>&1
    for i in 1 2 5; do
        test_pid=`ps ax | grep ${DEMUX_PID} | grep -v grep | grep DemuxManager | wc -l`
        if [ $test_pid -ge 1 ]; then
            sleep $i
-           kill -TERM ${DEMUX_PID} > /dev/null 2>&1
+           kill -1 ${DEMUX_PID} > /dev/null 2>&1
        else
            break
        fi
@@ -53,12 +53,12 @@ pidFile=$CHUKWA_PID_DIR/PostProcessorMan
 if [ -f $pidFile ]; then
    echo -n "Shutting down dp ..."
    POST_PROCESS_PID=`head ${pidFile}`
-   kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
+   kill -1 ${POST_PROCESS_PID} > /dev/null 2>&1
    for i in 1 2 5; do
        test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep PostProcessorManager
| wc -l`
        if [ $test_pid -ge 1 ]; then
            sleep $i
-           kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
+           kill -1 ${POST_PROCESS_PID} > /dev/null 2>&1
        else
            break
        fi
@@ -79,12 +79,12 @@ pidFile=$CHUKWA_PID_DIR/ArchiveManager.p
 if [ -f $pidFile ]; then
    echo -n "Shutting down archive ..."
    POST_PROCESS_PID=`head ${pidFile}`
-   kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
+   kill -1 ${POST_PROCESS_PID} > /dev/null 2>&1
    for i in 1 2 5; do
        test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep ChukwaArchiveManager
| wc -l`
        if [ $test_pid -ge 1 ]; then
            sleep $i
-           kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
+           kill -1 ${POST_PROCESS_PID} > /dev/null 2>&1
        else
            break
        fi



Mime
View raw message