echo "$TESTSERVER responds to pings, even though it was reset 3secs ago, this should not happen, please investigate manually."
exit 1
fi
+echo
#
# check for 10min whether it's booting up again
sleep 10
echo -n "$(date +%H:%M:%S): "
if $(ping -c 1 $TESTSERVER >/dev/null) ; then
- echo
- echo "$(date +%H:%M:%S): ICMP echo reply from $TESTSERVER, so let's assume it's booting now."
+ echo "ICMP echo reply from $TESTSERVER, so let's assume it's booting now."
break
fi
echo "no ICMP echo reply received."
echo "$TESTSERVER still down, please investigate."
exit 1
fi
+echo
#
# check for 15min whether ssh comes back
echo "ok, sshd is running at $(date +%H:%M:%S)"
break
else
- echo "but sshd is not running at date $(date +%H:%M:%S)"
+ echo "but sshd is not running at $(date +%H:%M:%S)"
fi
fi
done
echo "$TESTSERVER still not running sshd, please investigate."
exit 1
fi
+echo
#
# send announce mail
echo "$MAIL does not exist, something wrong with liveboot-web?"
exit 1
fi
-head -42 $MAIL
+head -33 $MAIL
cat $MAIL | /usr/sbin/sendmail $MAILTO
echo
echo "Ok, mail to $MAILTO send."