HBASE-12240 hbase-daemon.sh should remove pid file if process not found running (Ashish Singhi)
This commit is contained in:
parent
ed3be21e7f
commit
b68b3bf784
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue