#!/bin/sh
curl -s --head http://www.mma.hu/muveszeti-hirek | head -n 1 | grep "200 OK"
if [ $? != 0 ]
then
/home/liferay/liferay-mma-6.1.20-ee-ga2/tomcat-7.0.27/bin/shutdown.sh
/home/liferay/liferay-mma-6.1.20-ee-ga2/tomcat-7.0.27/bin/startup.sh
else
echo "OK"
fi
~