Hacked some essential OSX Applescripts today. I've been looking for the perfect combination of tools to keep my Frontier servers running with as little human intervention as possible :)
Previousy it was only a relaunch app, now I have set a schedule with cron to launch a small script to quit frontier on an assigned schedule to clear out memory and other groovy stuff. Sometimes a simple script will timeout, so I added a try statement that waits 300 seconds then finds the apps process id and kills it with a command line 'kill'.
Another script is running continuously and checks every 10 seconds if the application is still running, otherwise it fires it up.
Next I'm making a script to check if frontier has frozen and not responding to http requests.
Easy like Sunday morning.....
1:09:31 PM
|