I wrote a bash script

You may possibly have noticed the intermittent availability of the site during the last hour. Well I’ve been fiddling around trying to get my clever “restart Apache and MySQL if they crash” script working.

To that end, I did something unexpected: I wrote a shell script in bash. Not something I ever came close to trying before but it was surprisingly straightforward. The implicit availability of regular expressions everywhere definitely made things easier.

Have a look at this bash scripting guide for more info…