1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #729: sunstone start script checks for successful startup

This commit is contained in:
Javi Fontan 2011-07-21 13:49:37 +02:00
parent a332d31b16
commit 9074723543

View File

@ -66,12 +66,15 @@ start()
echo "The port $PORT is being used. Please specify a different one."
exit 1
fi
# Start the ozones daemon
touch $OZONES_LOCK_FILE
rackup $OZONES_SERVER -s thin -p $PORT -o $HOST \
-P $OZONES_PID &> $OZONES_LOG &
sleep 2
ps -p $(cat $OZONES_PID 2>/dev/null) > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error executing $OZONES_SERVER, please check the log $OZONES_LOG"
exit 1