aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-26 21:42 UTC
mongrel_rails cluster::restart from within a controller ?
I need to have a button in my rails web app to allow and admin to
restart the "''server", which for this app means restarting
the mongrel
processes.
If I do...
system(''mongrel_server cluster::restart'')
it shuts down all my mongrels (3 in this case), and starts all but one
of them back up.
The one that does not start back up is the one that handled this
request. The process that system forks off is a child to this mongrel
process, and the process is still holding onto the port as best i can
tell, so the new mongrel process does not start because the port is
already in use !
Any great ideas how to get around this ?
-- Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- mongrel_rails cluster::restart task via capistrano mongrel_cluster/recipes problem.
- mongrel_rails start working mongrel_rails cluster::start not working
- Restarting mongrel cluster from other directories
- Mongrel_rails restart and sudo
- mongrel_rails cluster::stop not working
