Chris Roos
2009-Apr-02 08:39 UTC
[Cruisecontrolrb-users] Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents
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
Chad Woolley
2009-Apr-02 09:15 UTC
[Cruisecontrolrb-users] Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents
On Thu, Apr 2, 2009 at 1:39 AM, Chris Roos <chris at seagul.co.uk> 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.
Chris Roos
2009-Apr-02 09:39 UTC
[Cruisecontrolrb-users] Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents
On Thu, Apr 2, 2009 at 10:15 AM, Chad Woolley <thewoolleyman at gmail.com> wrote:> On Thu, Apr 2, 2009 at 1:39 AM, Chris Roos <chris at seagul.co.uk> 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
Chad Woolley
2009-Apr-02 16:28 UTC
[Cruisecontrolrb-users] Running cc.rb under Passenger (mod_rails) and the builders as Launch Agents
On Thu, Apr 2, 2009 at 2:39 AM, Chris Roos <chris at seagul.co.uk> 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.