Daedalus
I waited for the transfer of bidwell (one of the shared hosting servers of TextDrive) to the new hardware and took some time today to figure out how to get Daedalus to work, so it would monitor lighttpd and restart it if it would crash.
$ mkdir ~/src $ cd ~/src $ wget http://svn.textdrive.com/repos/scripts/daedalus-1.2.tar.bz2 $ tar xjvf daedalus-1.2.tar.bz2 $ mkdir ~/daedalus $ cd ~/daedalus $ cp ~/src/daedalus/daedalus.rb . $ mkdir log run $ wget http://blog.fngtps.textdriven.com/daedalus.conf $ ./daedalus.rb
And it was up and running.
Just to be sure, I added a cron job to make sure Daedalus gets started each time the server is rebooted.
Of course I cheated and prepared the config file (daedalus.conf) in advance:
name: lighttpd checkcommand: /bin/ps ax checkregex: /lighttpd/ onfailcommand: /usr/local/sbin/lighttpd -f /home/thijs/lighttpd/lighttpd.conf checkinterval: 30 aftercommandwait: 15