From 45b8ad3c0ceb3c945a159779ba0da89fdf13d381 Mon Sep 17 00:00:00 2001 From: Elliott Clark Date: Wed, 24 Jul 2013 08:08:55 -0700 Subject: [PATCH] Capture logging. --- bin/hbase-daemon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git bin/hbase-daemon.sh bin/hbase-daemon.sh index e45054b..7f024a4 100755 --- bin/hbase-daemon.sh +++ 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 -- 1.7.10.2 (Apple Git-33)