From 47724c0791a0fe47243cc363bdd93df5207b9cdf Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 4 Sep 2013 22:51:16 +0000 Subject: [PATCH] HBASE-9412 Startup scripts create 2 .out files git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1520165 13f79535-47bb-0310-9956-ffa450edef68 --- bin/hbase-daemon.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh index 6023a7428f8..caa74d8d7bc 100755 --- a/bin/hbase-daemon.sh +++ b/bin/hbase-daemon.sh @@ -172,6 +172,8 @@ case $startStop in (start) check_before_start + hbase_rotate_log $logout + hbase_rotate_log $loggc 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}" @@ -179,12 +181,12 @@ case $startStop in (autorestart) check_before_start + hbase_rotate_log $logout + hbase_rotate_log $loggc nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_autorestart $command $args < /dev/null > ${logout} 2>&1 & ;; (internal_start) - hbase_rotate_log $logout - hbase_rotate_log $loggc # Add to the command log file vital stats on our environment. echo "`date` Starting $command on `hostname`" >> $loglog echo "`ulimit -a`" >> $loglog 2>&1