PDA

View Full Version : [ubuntu] Running CruiseControl at startup


miggl
September 20th, 2008, 02:15 PM
Hi folks!

I have managed to get CruiseControl (http://cruisecontrol.sourceforge.net/) installed, well... somewhat.
There are a few quandaries I am trying to overcome:


How to get CruiseControl to work from /opt/cruisecontrol/ directory, instead of ~/cruisecontrol/.
How to get CruiseControl to run at startup.


I guess the main problem is #1: When installing it per these instructions (http://no-names.biz/2008/06/09/cruisecontrol-and-phpundercontrol-in-debian-etch/) I receive the following error when trying to start cruisecontrol:
mike@sol:/opt/cruisecontrol$ sudo ./cruisecontrol.sh
Using Cruise Control at /opt/cruisecontrol-bin-2.7.3
/bin/java -Djavax.management.builder.initial=mx4j.server.MX4J MBeanServerBuilder -Dcc.library.dir=/opt/cruisecontrol-bin-2.7.3/lib -jar /opt/cruisecontrol-bin-2.7.3/lib/cruisecontrol-launcher.jar -jmxport 8000 -webport 8080 -rmiport 1099
./cruisecontrol.sh: line 102: /bin/java: No such file or directory


Note: I'm using SUDO here because it would use the same permissions if trying to start it from /etc/rc.local (which doesn't work).

I've narrowed the error down to the JAVA_HOME environment variable not being read correctly, even though:
mike@sol:/opt/cruisecontrol$ sudo echo $JAVA_HOME
/usr/lib/jvm/java-6-sun


Does anyone have any advice?

Thanks!

hexusff
October 1st, 2008, 06:00 PM
Hi i crush with the same problem, apparently cruise control has hardcoded that path, so I made a symbolic link to the java binary
$ ln -s /usr/lib/jvm/java-6-sun/bin/java /bin/java
This solved this problem, maybe some one got a better way to get this tool running

RussellEngland
August 18th, 2011, 11:04 AM
Brilliant, thank you :)