Stopping builders

View: New views
2 Messages — Rating Filter:   Alert me  

Stopping builders

by Matt Wynne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

When I call 'cruise stop' from the command line, this just sends a  
command to mongrel to stop the rails app. Some time later the builders  
also seem to stop, but I'm not sure how this is achieved.

I'd like to get better control over the builders, ideally putting a  
cancel button on the UI so I can send a CTRL-C to the rake task. I'd  
also like the 'cruise stop' command to wait for each builder to stop,  
and let me know how that is going.

I'm happy to hack on the code to do this but I could do with some  
guidance to get started. Can anyone give me some pointers as to how  
this would be achieved?

Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com

_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Re: Stopping builders

by Chad Woolley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Mar 11, 2009 at 3:15 AM, Matt Wynne <matt@...> wrote:

> Hi,
>
> When I call 'cruise stop' from the command line, this just sends a command
> to mongrel to stop the rails app. Some time later the builders also seem to
> stop, but I'm not sure how this is achieved.
>
> I'd like to get better control over the builders, ideally putting a cancel
> button on the UI so I can send a CTRL-C to the rake task. I'd also like the
> 'cruise stop' command to wait for each builder to stop, and let me know how
> that is going.
>
> I'm happy to hack on the code to do this but I could do with some guidance
> to get started. Can anyone give me some pointers as to how this would be
> achieved?

This will probably be tricky to do in a cross-platform way, especially
on windows.

I'm planning (hopefully soon) to continue to improve the init script
(under daemon dir) to make sure it kills all builders and
sub-processes when cruise is stopped.  Not sure if this will make it
into 'cruise stop', that code is kinda weird anyway, and would have
the same problems to make it works cross-platform.  So, I'll probably
just do it in the init script, which is currently unix- (maybe
debian-)only anyway, so I don't have to worry about cross platform.

-- Chad
-- Chad
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users