Skip to content

Instantly share code, notes, and snippets.

@michaelneale
Last active February 27, 2018 03:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save michaelneale/9635744 to your computer and use it in GitHub Desktop.
Save michaelneale/9635744 to your computer and use it in GitHub Desktop.
systemd script for jenkins OPEs (slaves)
[Unit]
Description=CloudBeees On Prem executor
Documentation=https://developer.cloudbees.com/bin/view/DEV/On-Premise+Executors
Requires=network.target
After=multi-user.target
[Service]
Type=simple
ExecStart=/opt/java6/bin/java -jar /usr/share/jenkins-cli.jar -s https://cloudbees.ci.cloudbees.com on-premise-executor -fsroot /workspace -labels docker -nam\
e docker-builder-1
Restart=always
RestartSec=60
StartLimitInterval=0
User=<changeme>
[Install]
WantedBy=multi-user.target
#
# To install:
#
# ensure all names and paths above are correct for you:
#
# install -D -m 644 ope.service /usr/lib/systemd/system/ope.service
# systemctl daemon-reload
# systemctl start ope
# systemctl enable op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment