HowTo:Check Server Status
From iFolder
A script file to check if the server works and takes aktion.
Put this script in crontab to check status every 5 minutes or so. It was made for a SLES 10 server.
#!/bin/bash
PATH=${PATH}:/sbin:/usr/bin
export PATH
curl -s 'http://localhost/ifolder/Login.aspx?ReturnUrl=%2fifolder%2fiFolders.aspx' \
|grep -q 'LoginButton' \
||(service apache2 stop; killall mono;service apache2 start)
