Author: eclark
Date: Wed Jul 31 15:54:04 2013
New Revision: 1508945

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

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=1508945&r1=1508944&r2=1508945&view=diff
==============================================================================
--- hbase/branches/0.95/bin/hbase-daemon.sh (original)
+++ hbase/branches/0.95/bin/hbase-daemon.sh Wed Jul 31 15:54:04 2013
@@ -172,7 +172,9 @@ case $startStop in
 
 (start)
     check_before_start
+    echo starting $command, logging to $logout
     nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_start $command $args 
< /dev/null > ${logout} 2>&1  &
+    sleep 1; head "${logout}"
   ;;
 
 (autorestart)
@@ -183,7 +185,6 @@ case $startStop in
 (internal_start)
     hbase_rotate_log $logout
     hbase_rotate_log $loggc
-    echo starting $command, logging to $logout
     # Add to the command log file vital stats on our environment.
     echo "`date` Starting $command on `hostname`" >> $loglog
     echo "`ulimit -a`" >> $loglog 2>&1
@@ -191,7 +192,6 @@ case $startStop in
         --config "${HBASE_CONF_DIR}" \
         $command "$@" start >> "$logout" 2>&1 &
     echo $! > $pid
-    sleep 1; head "$logout"
     wait
     cleanZNode
   ;;


Reply via email to