Running Mongrel on startup


I have a mongrel server running, but it stops whenever i reboot my

Is there a way of starting the mongrel server on bootup?


I use this one in my local startup script:

On Wed, May 7, 2008 at 4:52 PM, Craig Willis <

mongrel_cluster comes with a init script which works well. On my
Fedora/Red Hat/CentOS systems, the script is found at

Now if I could find out a way to also get ‘script/backgroundrb start’ to
automatically run as user, that would be nice.


I’m running Ubuntu

All I wanted was a script that, when the server restarted, deleted the
PID file and could be restarted automatically.

I’ll take a look around at the examples you’ve given me


i’ve used Monit for that.

my mongrel configuration:

check process mongrel_8001

if failed port 8001 protocol http with timeout 60 seconds then restart

and my backgroundrb configuration:

check process backgroundrb

after that, run "sudo /etc/init.d/monitrc start all -g "

Felipe Mesquita

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs