Sha256: 741310ee13e78c56ae55196bd02a461bf086fe15500a7457d60d1454a0af4ee9
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
#!/sbin/runscript # Start/stop script for jenkins PIDFILE=<%= @pid %> HUDSON_HOME="<%= @home %>" COMMAND=/usr/bin/java ARGUMENTS="-Djava.io.tmpdir=${HUDSON_HOME}/tmp -jar ${HUDSON_HOME}/jenkins.war --webroot=${HUDSON_HOME}/war --httpPort=<%= @port %> ajp13ListenAddress=127.0.0.1" RUN_AS="<%= @user %>" NAME=Jenkins-CI start() { ebegin "Starting $NAME" export HUDSON_HOME="${HUDSON_HOME}" export HOME="/home/${RUN_AS}" export USER="${RUN_AS}" start-stop-daemon -b --start --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND -- $ARGUMENTS &>$HUDSON_HOME/logs/jenkins_log eend $? } stop() { ebegin "Stopping $NAME" start-stop-daemon --stop --quiet --pidfile $PIDFILE rm -f $PIDFILE eend $? }
Version data entries
3 entries across 3 versions & 1 rubygems