mirror of https://github.com/apache/cloudstack.git
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:
parent
f27905b8f9
commit
52f4df3428
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue