Some setup stuff for the gocd lab
Useful to run multiple go-agents on the same host. See: https://docs.gocd.io/current/advanced_usage/admin_install_multiple_agents.html
-
Install your first agent with the installer
-
Run
sudo clone-go-agent.sh 1
-
You can now start or stop the second agent using
/etc/init.d/go-agent-1
(passing it the start or stop) arguments as usual. Logs will be written to/var/log/go-agent-1/
. -
Repeat this process for more agents. Just change the suffix "1" to "2" and so on.
-
To enable starting the go-agent service during system boot:
insserv go-agent-1
update-rc.d go-agent-1 defaults
chkconfig go-agent-1 on