mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09:00
bug-354: check that the daemons have started
This commit is contained in:
1 parent
c883bab17d
commit
eec200f3b5
1 file changed
+29
-1
+29
-1
@@ -145,7 +145,35 @@ start()
|
|||||||
echo $LASTPID > $ONE_SCHEDPID
|
echo $LASTPID > $ONE_SCHEDPID
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "oned and scheduler started"
|
|
||||||
|
# Wait for the daemons to warm up
|
||||||
|
sleep 5
|
||||||
|
|
||||||
|
STARTED="true"
|
||||||
|
|
||||||
|
ps `cat $ONE_PID` > /dev/null 2>&1
|
||||||
|
|
||||||
|
if [ "x0" == "x0" ]; do
|
||||||
|
echo "oned started"
|
||||||
|
else
|
||||||
|
echo "oned failed to start"
|
||||||
|
STARTED="false"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
ps `cat $ONE_SCHEDPID` > /dev/null 2>&1
|
||||||
|
|
||||||
|
if [ "x0" == "x0" ]; do
|
||||||
|
echo "scheduler started"
|
||||||
|
else
|
||||||
|
echo "scheduler failed to start"
|
||||||
|
STARTED="false"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$STARTED" == "false" ]; then
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in new issue
Block a user