Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 16:59:00 GMT)

Lighttpd, crontab, and server reboots

Posted by Sat, 10 Dec 2005 00:41:00 GMT

I’ll be the first to admit that server reboots do happen. Whether they are for planned hardware upgrades or the unexpected runaway CPU processes…they can cause some problems for your applications.

Recently, we had an unexpected outage on one of our servers and noticed that some of the lighttpd instances were not restarted automatically. I personally went and started up each one manuually and documented who they all were. We wanted to build a nice solution to this… but because every user has their own method of invoking lighttpd and we kind of let you run free with that… the idea to build one init script to meet everyones needs… isn’t currently practical. We want you to have some freedom with that and we can help you along the way. :-)

So… what should you do?

Well, David Gibbons (our new Lead Systems Administrator) has a nice tip on his blog, a cool trick with cron.

He shows you how to use the @reboot option in crontab for scheduling scripts to startup on a reboot.

This is great to use and should work if you are a hosting customer at PLANET ARGON. Expect more little tricks like this in the future as David has many up his sleeve. You might want to subscribe to his brand new Typo blog RSS feed. ;-)

class David < ActiveRecord::Base
  has_many :tricks

Have a great weekend!

Get help with your Rails project

comments powered by Disqus