Daemon init script fails on reboot if mongrel pid is leftover
Reported by Chad Woolley | August 23rd, 2008 @ 06:18 PM
Such as a system crash or hard reset. Should be cleaned up if mongrel is not running. Look for good examples of this - how does mongrel_cluster do it?
Comments and changes to this ticket
-
Chad Woolley August 23rd, 2008 @ 06:26 PM
If you use mongrel_rails cluster::start, there is a --clean option, but not with mongrel_rails start.
Could just kill the pid on start regardless, and let a port error happen if it is actually running. Not optimal, but probably better than it not running on reboot - especially since no error log entries are printed (this is another bug, because ccrb does not pass up the mongrel return code)
-
Chad Woolley August 23rd, 2008 @ 06:56 PM
The logic to handle pid files on the --clean option is in the mongrel_cluster init.rb.
The lsof gem also has similar logic.
Similar logic should be added to ccrb in either script/server or lib/cruise_control/init.rb
-
Chad Woolley May 11th, 2009 @ 05:46 PM
- Assigned user set to Chad Woolley
- State changed from new to resolved
Should be fixed in latest daemon_helper.rb
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป