From smaloff at veer.com Tue Sep 25 10:31:26 2007
From: smaloff at veer.com (Sheldon Maloff)
Date: Tue, 25 Sep 2007 07:31:26 -0700 (PDT)
Subject: [Cruisecontrolrb-developers] [PATCH] Documentation: Running
CC.rb under launchd in OS X 10.4 - need verification
In-Reply-To: <46A91B58.2040904@justhansen.dk>
References: <46A91B58.2040904@justhansen.dk>
Message-ID: <12880795.post@talk.nabble.com>
Hello Michael,
I don't know how much searching on Google I must have done before
stumbling upon this. Surprisingly, it's nearly identical to what I was
producing on my own with little tidbits of knowledge gained from here
and there.
My cruise control happens to be in /usr/local/cruisecontrolrb-1.1.0. What I
was tripped up on was specifying the PATH. Originally I just copied the big
path from typing 'set' at a Terminal prompt. That failed miserably. Then I
read this post and find out all I need to specify is the path to
/usr/local/bin (yours
is /opt/local/bin). Behold. It works. Almost. That PATH got around most
issues. However, I'm also using rcov for testing and it still bombed. But
rcov
did provide a hint: Define INLINEDIR or HOME in your environment and try
again. So I added
HOME
/Users/administrator
into the EnvironmentVariables dict and now everything works. Cruise runs,
svn runs, and rcov runs. Although I can't say exactly why rcov 0.8.0.2
requires
a HOME environment variable.
Regards,
Sheldon Maloff
Michael just Hansen wrote:
>
> Hi
> I made this small launchd setup to get CC.rb running on startup on my
> mac box.
>
> If someone can try this out (see below) and verify that it works (or
> even improve upon it) I'll go ahead and submit it to the JIRA as an
> improvement.
>
> Thanks in advance,
> Michael
>
> ---------------------
>
> To run CC.rb as a service under launchd place the following XML into a
> file named org.rubyforge.cruisecontrol.plist in the directory
> "/Library/LaunchDaemons"
>
>
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
>
>
> Label
> org.rubyforge.cruisecontrol
> WorkingDirectory
> /opt/local/cruisecontrolrb-1.1.0
> ProgramArguments
>
> /opt/local/cruisecontrolrb-1.1.0/cruise
> start
>
> EnvironmentVariables
>
> PATH
> /opt/local/bin
>
> RunAtLoad
>
>
>
>
> Replace "/opt/local/cruisecontrol" with [cruise] and "/opt/local/bin"
> with the path to
> your SVN command. If you get an SVN error when building your project, it
> is this
> environment path that is incorrect.
>
> Install it by executing
>
> sudo launchctl load
> /Library/LaunchDaemons/org.rubyforge.cruisecontrol.plist
>
> Should you wish to unload it do a
>
> sudo launchctl unload
> /Library/LaunchDaemons/org.rubyforge.cruisecontrol.plist
>
> Unfortunately, as "cruise" spawns another ruby process you also need to
> do a "ps -A"
> and "sudo kill process_number" the process called "ruby [cruise]..."
>
> _______________________________________________
> Cruisecontrolrb-developers mailing list
> Cruisecontrolrb-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers
>
>
--
View this message in context: http://www.nabble.com/-PATCH--Documentation%3A-Running-CC.rb-under-launchd-in-OS-X-10.4---need-verification-tf4154536.html#a12880795
Sent from the CruiseControl.rb - Development mailing list archive at Nabble.com.