From 2e13c675d5373adc2212a32a040d8ebe6f2ecc17 Mon Sep 17 00:00:00 2001 From: eclark Date: Wed, 24 Jul 2013 21:12:29 +0000 Subject: [PATCH] HBASE-9034 hbase-daemon.sh swallows start up errors git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1506716 13f79535-47bb-0310-9956-ffa450edef68 --- bin/hbase-daemon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh index e45054b5ac7..7f024a40eef 100755 --- a/bin/hbase-daemon.sh +++ b/bin/hbase-daemon.sh @@ -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