Where Did I Leave That Mongrel?
Posted by ben, Thu Jun 07 23:16:00 UTC 2007
If you have used mongrel long enough you may have noticed that mongrel can leave behind orphaned PID files. making it hard to restart mongrel until you clean up the PID files. Someone was nice enough to create a patch for this. it patches the mongrel_rails script to check for orphaned PID files and delete them so that mongrel can start properly.
To apply the patch …- download mongrel_stale_pid_file.patch to the server
- cd to the mongrel folder … usually /usr/lib/ruby/gems/1.8/gems/mongrel-XXX (where XXX is the version)
- run …
patch -p0 < /path/to/mongrel_stale_pid_file.patch
IF YOU ARE RUNNING SWIFTIPLY YOU NEED TO DO ONE MORE THING
If you are running swiftiply it runs it own version of the mongrel_rails executable. So, it will need to be patched as well. Simply repeat steps 2 & 3 from above but from the swiftiply folder … usually /usr/lib/ruby/gems/1.8/gems/swiftiply-XXX (where XXX is the version)