~ubuntu-branches/ubuntu/saucy/jenkins/saucy

« back to all changes in this revision

Viewing changes to debian/jenkins-slave.upstart

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-02-17 17:11:13 UTC
  • mfrom: (5.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20130217171113-eooiq8e14nie0h3v
Tags: 1.480.3+dfsg-1~exp1
* New upstream release (Closes: #700761, #679616):
  - d/control: Versioned BD jenkins-remoting >= 2.22.
  - d/control: Versioned BD jenkins-winstone >= 0.9.10-jenkins-42.
  - d/control: Versioned BD stapler >= 1.198.
  - d/maven.ignoreRules: Ignore new slave-launcher modules until
    packaged.
  - Refreshed patches.
  - Fixes the following security vulnerabilities:
    CVE-2013-0327, CVE-2013-0328, CVE-2013-0329, CVE-2013-0330,
    CVE-2013-0331
* d/control: Versioned BD trilead-putty-extension (>= 1.2)
  (Closes: #698834).
* d/control: Add net-tools and procps dependencies to jenkins
  (Closes: #698835).
* d/rules,control, *.upstart.in: Rejig upstart/init configurations now
  that debhelper does the right thing across Debian/Ubuntu.
* d/rules,plugin_parent.pom.in: Drop as good plugin parent pom now
  provided upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Jenkins CI Slave Agent"
 
2
author "James Page <james.page@ubuntu.com>"
 
3
 
 
4
start on runlevel [2345]
 
5
stop on runlevel [!2345]
 
6
 
 
7
pre-start script
 
8
    [ -r /etc/default/jenkins-slave ] && . /etc/default/jenkins-slave
 
9
    [ -n "$JENKINS_URL" ] || { stop; exit 0; }
 
10
    mkdir $JENKINS_RUN  > /dev/null 2>&1  || true
 
11
    chown -R $JENKINS_USER $JENKINS_RUN || true
 
12
    $JENKINS_ROOT/bin/download-slave.sh $JENKINS_URL
 
13
end script
 
14
 
 
15
script
 
16
    [ -r /etc/default/jenkins-slave ] && . /etc/default/jenkins-slave
 
17
    exec start-stop-daemon --start -c $JENKINS_USER --exec $JAVA --name jenkins-slave \
 
18
        -- $JAVA_ARGS -jar $JENKINS_RUN/slave.jar $JENKINS_ARGS 
 
19
end script