set -e
#set -x
export
+echo
TESTSERVER=pserver2
TESTSERVER_MGMT_IP=192.168.178.49
#
# check for 10min whether it's up again
#
-echo -n "Pinging $TESTSERVER..."
+echo "Pinging $TESTSERVER..."
for i in $(seq 1 60) ; do
sleep 10
- echo -n "."
+ echo "."
if $(ping -c 1 $TESTSERVER >/dev/null) ; then
- echo
- echo
echo "$TESTSERVER pings again, so we assume it's up."
break
fi
done
if ! $(ping -c 1 $TESTSERVER >/dev/null) ; then
- echo
figlet "Failure:"
echo "$TESTSERVER still down, please investigate."
exit 1