Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents

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

Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents

by Chris Roos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Morning,

I spent quite some time getting cruisecontrol.rb running on a Mac
under Passenger (mod_rails) and the builders running as Launch Agents.
 I've documented it on my blog[1].  I'd appreciate knowing what people
think about this approach and any alternative approaches people might
be using to run cruise automatically and in the background.

Cheers,

Chris

[1] http://chrisroos.co.uk/blog/2009-03-31-cruisecontrolrb-with-passenger-and-launchd-on-a-mac

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

Re: Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents

by Chad Woolley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Apr 2, 2009 at 1:39 AM, Chris Roos <chris@...> wrote:
>  I've documented it on my blog[1].  I'd appreciate knowing what people
> think about this approach and any alternative approaches people might
> be using to run cruise automatically and in the background.

Interesting, but seems painful.  The passenger support could be useful, though.

I just checked in changes to ccrb master which allow the init scripts
under daemon to run on OSX.  You should be able to hook this to
launchd, or just set it as a startup item for the current user's
profile.
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Re: Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents

by Chris Roos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Apr 2, 2009 at 10:15 AM, Chad Woolley <thewoolleyman@...> wrote:

> On Thu, Apr 2, 2009 at 1:39 AM, Chris Roos <chris@...> wrote:
>>  I've documented it on my blog[1].  I'd appreciate knowing what people
>> think about this approach and any alternative approaches people might
>> be using to run cruise automatically and in the background.
>
> Interesting, but seems painful.  The passenger support could be useful, though.
>
> I just checked in changes to ccrb master which allow the init scripts
> under daemon to run on OSX.  You should be able to hook this to
> launchd, or just set it as a startup item for the current user's
> profile.

Yeah, I saw your commit that mentioned that it could now be daemonised
on Mac OS X.  I might try that although I suspect I'll have the same
public-key-authentication problem that results in me having to run the
launch agents as a logged in user at the moment.  On that note, does
anyone know how to get around that particular problem (daemon's
running as root but git access being public key only and the public
key belongs to a non-root user)?

Cheers,

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

Re: Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents

by Chad Woolley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Apr 2, 2009 at 2:39 AM, Chris Roos <chris@...> wrote:
> launch agents as a logged in user at the moment.  On that note, does
> anyone know how to get around that particular problem (daemon's
> running as root but git access being public key only and the public
> key belongs to a non-root user)?

If you run it as a startup program in the current user, that should
solve it, no?

The daemon has logic to run as a different user as well, but I've only
tried that on Linux.  It works fine there, though, when the script is
run on system init.
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users