/etc/init/jenkins-slave.conf is in jenkins-slave 1.424.6+dfsg-1.
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 | description "Jenkins CI Slave Agent"
author "James Page <james.page@ubuntu.com>"
start on runlevel [2345]
stop on runlevel [!2345]
pre-start script
[ -r /etc/default/jenkins-slave ] && . /etc/default/jenkins-slave
[ -n "$JENKINS_URL" ] || { stop; exit 0; }
mkdir $JENKINS_RUN > /dev/null 2>&1 || true
chown -R $JENKINS_USER $JENKINS_RUN || true
$JENKINS_ROOT/bin/download-slave.sh $JENKINS_URL
end script
script
[ -r /etc/default/jenkins-slave ] && . /etc/default/jenkins-slave
exec start-stop-daemon --start -c $JENKINS_USER --exec $JAVA --name jenkins-slave \
-- $JAVA_ARGS -jar $JENKINS_RUN/slave.jar $JENKINS_ARGS
end script
|