分类: LINUX
2015-04-10 18:32:57
The is a wrapper that works both on Unix and . It requires some set up but when it is setup it can be used as any other unix service (like start/stop).
This example will install a Jenkins instance in /home/jenkins on a debian machine. The Jenkins configuration is stored in /home/jenkins/data. Jenkins will be running on port 8070 and as the jenkins user.
wrapper.java.classpath.1=../lib/jenkins.war wrapper.java.classpath.2=../lib/wrapper.jar wrapper.java.additional.1=-DJENKINS_HOME=../data wrapper.java.additional.2=-Djava.io.tmpdir=../tmp wrapper.java.additional.3=-server # Set directly the time zone of the JVM, by setting this we do not rely on the time zone of the server. # Uncomment the following line if needed. # wrapper.java.additional.4=-Duser.timezone=America/Los_Angeles wrapper.app.parameter.1=Main wrapper.app.parameter.2=--httpPort=8070 wrapper.ping.timeout=300 wrapper.jvm_exit.timeout=60 wrapper.console.title=Jenkins Continuous build server
APP_NAME="Jenkins" APP_LONG_NAME="Jenkins Continuous build server" WRAPPER_CMD="/home/jenkins/bin/wrapper" WRAPPER_CONF="/home/jenkins/conf/wrapper.conf" PIDDIR="/home/jenkins/bin" RUN_AS_USER=jenkins