Forum: Ruby on Rails mongrel_rails cluster::restart from within a controller ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aec10c73877ea116bab759e060b2fcb3?d=identicon&s=25 aktxyz@gmail.com (Guest)
on 2007-02-26 22:43
(Received via mailing list)
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
This topic is locked and can not be replied to.