keeping mongrel running on *nix

i found a great recipe on creating a launchd item for mongrel so that
all of the mongrel servers can be start automatically when the computer
is rebooted.

what would be the equivalent of this on my production server?
currently, after every reboot, i am having to ssh into the computer and
run mongrel_rails start.

Exactly how you add/create a system service is fairly platform
dependent i think, and probably better answered elsewhere. -- In brief
you create a script for starting and stopping your tasks, then assign
that script to the proper run levels somehow.

On a production server I think you should also consider
mongrel_cluster, which makes it easier to manage several
processes/applications at once.

I pieced my vps setup together following the two articles below:


These are also good reads: