Created
May 27, 2016 04:57
-
-
Save sj26/bccfac9142bf804113b4c1f4026d105a to your computer and use it in GitHub Desktop.
Starting multiple buildkite-agents per-machine with systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Buildkite Agents | |
Documentation=https://buildkite.com/agent | |
[email protected] | |
[email protected] | |
# ... | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/true | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Buildkite Agent %i | |
Documentation=https://buildkite.com/agent | |
BindsTo=buildkite-agent.service | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
User=buildkite-agent | |
Environment=HOME=/var/lib/buildkite-agent | |
SyslogIdentifier=buildkite-agent-%i | |
ExecStart=/usr/bin/buildkite-agent start --name="%H-%i" | |
ReloadPropogatedFrom=buildkite-agent.service | |
RestartSec=5 | |
Restart=on-failure | |
TimeoutSec=10 |
Author
sj26
commented
May 27, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment