#!/bin/bash
# Insert a check to see if 192.168.0.205 is on this machine first,
# and if it is not - to then try to ping it.
if ping -c 1 192.168.0.200 >/dev/null;
   then echo '========================='
	echo "Host server is back up @ `date`"
	echo "Releasing shared IP"
        echo '========================='
        ifconfig venet0:1 down
        bash pingtest.sh 
   else echo "Host is still down"
	sleep 3
	bash pingtest3.sh
fi
sleep 3

