HBASE-9034 hbase-daemon.sh swallows start up errors -- ADD

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1508944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-07-31 15:53:57 +00:00
parent 505b4e9ffd
commit 4c05a177b0
1 changed files with 2 additions and 2 deletions

View File

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