CS-14369: Fix Quick Installation on the single host

Notice, even after this fix, there would be 2 entries in the mshost table, after
mgmt server restarted. But it should be harmless, since only one of them is
"Up".

Some message in the log would indicate something wrong with the original mshost
entry, but still, it seems harmless.
This commit is contained in:
Sheng Yang 2012-04-18 20:08:18 -07:00
parent 9d694dd8e7
commit b31f383398
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ stop() {
until [ "$count" -gt "$SHUTDOWN_WAIT" ]
do
agentPid=`ps aux|grep [j]ava`
agentPid=`ps aux|grep [j]ava|grep cloud-agent`
if [ "$?" -gt "0" ];then
break
fi
@ -102,7 +102,7 @@ stop() {
let count="${count}+1"
done
agentPid=`ps aux|grep [j]ava`
agentPid=`ps aux|grep [j]ava|grep cloud-agent`
if [ "$?" -eq "0" ]; then
agentPid=`ps aux|grep [j]ava|awk '{print $2}'`
if [ "$agentPid" != "" ]; then