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
This commit is contained in:
eclark 2013-07-24 21:12:29 +00:00
parent 0a5e334023
commit 2e13c675d5
1 changed files with 3 additions and 3 deletions

View File

@ -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