You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/09/05 00:51:16 UTC
svn commit: r1520165 - /hbase/trunk/bin/hbase-daemon.sh
Author: stack
Date: Wed Sep 4 22:51:16 2013
New Revision: 1520165
URL: http://svn.apache.org/r1520165
Log:
HBASE-9412 Startup scripts create 2 .out files
Modified:
hbase/trunk/bin/hbase-daemon.sh
Modified: hbase/trunk/bin/hbase-daemon.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-daemon.sh?rev=1520165&r1=1520164&r2=1520165&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-daemon.sh (original)
+++ hbase/trunk/bin/hbase-daemon.sh Wed Sep 4 22:51:16 2013
@@ -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