-
-
Save shuber/f744128026798390ae95ab7d0919b7ef 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment