HBASE-12240 hbase-daemon.sh should remove pid file if process not found running (Ashish Singhi)

This commit is contained in:
stack 2014-10-12 23:07:19 -07:00
parent ed3be21e7f
commit b68b3bf784
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,6 @@ case $startStop in
echo "`date` Terminating $command" >> $loglog echo "`date` Terminating $command" >> $loglog
kill $pidToKill > /dev/null 2>&1 kill $pidToKill > /dev/null 2>&1
waitForProcessEnd $pidToKill $command waitForProcessEnd $pidToKill $command
rm $pid
else else
retval=$? retval=$?
echo no $command to stop because kill -0 of pid $pidToKill failed with status $retval echo no $command to stop because kill -0 of pid $pidToKill failed with status $retval
@ -263,6 +262,7 @@ case $startStop in
else else
echo no $command to stop because no pid file $pid echo no $command to stop because no pid file $pid
fi fi
rm -f $pid
;; ;;
(restart) (restart)