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
This commit is contained in:
parent
0614f41d33
commit
47724c0791
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue