diff options
-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 & |