[Mongrel] deleting pid files on ubuntu restart due to power down

Hassan Schroeder hassan.schroeder at gmail.com
Wed Jul 2 10:38:20 EDT 2008

On Wed, Jul 2, 2008 at 6:33 AM, Jags Rao <lists at ruby-forum.com> wrote:

> the problem is if for any reason the power fails out and comes back

sounds like the first thing to do is get a UPS :-)

> mysql and nginx get started fine but mongrel does not work due to
> some pid(mongrel.8000.pid  mongrel.8001.pid  mongrel.8002.pid) files

> is there anyway we can check during reboot of ubuntu server for any
> existing pid
> files in log folder and delete them and then start the mongrel cluster.

Of course -- look in /etc/init.d for examples of scripts that are run at
boot time (and/or shutdown).

Write your own and link it to the appropriate run-level (rc*.d) directory.

Hassan Schroeder ------------------------ hassan.schroeder at gmail.com

More information about the Mongrel-users mailing list