You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ec...@apache.org on 2013/07/24 23:12:39 UTC

svn commit: r1506717 - /hbase/branches/0.95/bin/hbase-daemon.sh

Author: eclark
Date: Wed Jul 24 21:12:39 2013
New Revision: 1506717

URL: http://svn.apache.org/r1506717
Log:
HBASE-9034 hbase-daemon.sh swallows start up errors

Modified:
    hbase/branches/0.95/bin/hbase-daemon.sh

Modified: hbase/branches/0.95/bin/hbase-daemon.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/bin/hbase-daemon.sh?rev=1506717&r1=1506716&r2=1506717&view=diff
==============================================================================
--- hbase/branches/0.95/bin/hbase-daemon.sh (original)
+++ hbase/branches/0.95/bin/hbase-daemon.sh Wed Jul 24 21:12:39 2013
@@ -172,12 +172,12 @@ case $startStop in
 
 (start)
     check_before_start
-    nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_start $command $args < /dev/null > /dev/null 2>&1  &
+    nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_start $command $args < /dev/null > ${logout} 2>&1  &
   ;;
 
 (autorestart)
     check_before_start
-    nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_autorestart $command $args < /dev/null > /dev/null 2>&1  &
+    nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_autorestart $command $args < /dev/null > ${logout} 2>&1  &
   ;;
 
 (internal_start)
@@ -189,7 +189,7 @@ case $startStop in
     echo "`ulimit -a`" >> $loglog 2>&1
     nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
         --config "${HBASE_CONF_DIR}" \
-        $command "$@" start > "$logout"  &
+        $command "$@" start >> "$logout" 2>&1 &
     echo $! > $pid
     sleep 1; head "$logout"
     wait