#!/bin/bash
rm /root/test/TEST
cd /root/test/ && wget http://bgsnow.com:8081/TEST
if [ ! -e /root/test/TEST ]; then
echo `date` >> /root/test/log
/opt/Plone-2.5/zeocluster/bin/restartcluster.sh >> /root/test/log
touch /root/test/TEST
fi
This simple script restarts Plone when it is not able to download http://bgsnow.com:8081/TEST. Again, another 5 mins script but handy in some situations
P.S. Make sure to adapt it for your environment
You will need to create at least a directory /root/test.
Leave a Reply
You must be logged in to post a comment.