Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created December 8, 2015 00:19
Show Gist options
  • Save yuuichi-fujioka/8e0e3ae847714ef7c15e to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/8e0e3ae847714ef7c15e to your computer and use it in GitHub Desktop.
upstart script for jenkins slave
respawn
respawn limit 15 5
start on runlevel [2345]
stop on runlevel [06]
script
exec start-stop-daemon --start --exec /usr/bin/java -- -jar /var/lib/jenkins/slave.jar -jnlpUrl http://10.241.3.153:8080/computer/yrp01/slave-agent.jnlp
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment