diff options
author | Sven Gothel <[email protected]> | 2013-06-08 05:18:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-08 05:18:10 +0200 |
commit | a2a277cf4c081fc961a02df2305a7bb4ce8be971 (patch) | |
tree | 5d9c9df593125dc1c54a7b9da6ba447b2c48ba22 /jenkins-server-slave-setup/scripts | |
parent | ed425b73b4069954dc9dafe234c75507e3166902 (diff) |
Use dedicated jre6 for jenkins ..
Diffstat (limited to 'jenkins-server-slave-setup/scripts')
-rwxr-xr-x | jenkins-server-slave-setup/scripts/start.jenkins.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/scripts/start.jenkins.sh b/jenkins-server-slave-setup/scripts/start.jenkins.sh index dae439f..71562ed 100755 --- a/jenkins-server-slave-setup/scripts/start.jenkins.sh +++ b/jenkins-server-slave-setup/scripts/start.jenkins.sh @@ -2,7 +2,11 @@ export JENKINS_HOME=/srv/jenkins export JENKINS_WAR=$JENKINS_HOME/jenkins.war export JENKINS_LOG=$JENKINS_HOME/jenkins.log + +#export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::") +export JAVA_HOME=/opt-linux-x86_64/jre6 JAVA=$JAVA_HOME/bin/java + nohup nice $JAVA -server -Xmx1024m -jar $JENKINS_WAR --httpPort=8080 --prefix=/chuck > $JENKINS_LOG 2>&1 & # nohup nice $JAVA -server -Xmx1024m -jar $JENKINS_WAR --httpPort=-1 --httpsPort=8080 --prefix=/chuck > $JENKINS_LOG 2>&1 & |