Installing golang Go-agent from Debian package provides /etc/init.d/gocd-golang-agent file. Gocd cookbook also provides init.d file for golang go-agent. When using Gocd cookbook and 2 golang Go-agents, there are such files available after provisioning:
Installing golang Go-agent from Debian package provides
/etc/init.d/gocd-golang-agent
file. Gocd cookbook also provides init.d file for golang go-agent. When using Gocd cookbook and 2 golang Go-agents, there are such files available after provisioning:/etc/init.d/gocd-golang-agent
/etc/init.d/go-agent
/etc/init.d/go-agent-1
and
/etc/init.d/gocd-golang-agent
is redundant.This issue is well resolved for java Go-agents: Go-agent Debian package provides
/etc/init.d/go-agent
file and then Gocd cookbook does this: https://github.com/gocd-contrib/go-cookbook/blob/bf4cfe2e1a5d870af0e6f26c11b249fbc8fd89c3/resources/agent.rb#L68 . I suggest the same way for golang Go-agents.