HBASE-13490 echo ulimit output to log during daemon foreground start.

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Y. SREENIVASULU REDDY 2015-04-17 11:16:12 +05:30 committed by Sean Busbey
parent 4182fc1a9b
commit f2e1238f98
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ case $startStop in
(foreground_start) (foreground_start)
# Add to the command log file vital stats on our environment. # Add to the command log file vital stats on our environment.
echo "`date` Starting $command on `hostname`" >> ${HBASE_LOGLOG} echo "`date` Starting $command on `hostname`" >> ${HBASE_LOGLOG}
`ulimit -a` >> "$HBASE_LOGLOG" 2>&1 echo "`ulimit -a`" >> "$HBASE_LOGLOG" 2>&1
# in case the parent shell gets the kill make sure to trap signals. # in case the parent shell gets the kill make sure to trap signals.
# Only one will get called. Either the trap or the flow will go through. # Only one will get called. Either the trap or the flow will go through.
trap cleanAfterRun SIGHUP SIGINT SIGTERM EXIT trap cleanAfterRun SIGHUP SIGINT SIGTERM EXIT