/etc/init/auto-upgrade-tester-jenkins-slave.conf is in auto-upgrade-tester 1:0.166.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Hudson Slave
description "auto-upgrade-tester-jenkins-slave: distributed job control"
author "James Page <james.page@canonical.com>"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
pre-start script
. /etc/default/auto-upgrade-tester-jenkins-slave
test -x /usr/bin/auto-upgrade-tester-jenkins-slave || { stop ; exit 0; }
test -r /etc/default/auto-upgrade-tester-jenkins-slave || { stop ; exit 0; }
test "${STARTUP}" = "true" || { stop; exit 0; }
end script
script
. /etc/default/auto-upgrade-tester-jenkins-slave
JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun"
for jdir in $JDK_DIRS; do
if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then
JAVA_HOME="$jdir"
fi
done
export JAVA_HOME
exec start-stop-daemon --start --chuid $USER:$GROUP --exec /usr/bin/auto-upgrade-tester-jenkins-slave -- $OPTS $HUDSON_MASTER
end script
|