Closed tomzo closed 8 years ago
Will need to change documentation as well, then.
Copying makes sense to me. There's no way I can think of to parameterize that. Unless $(basename $0)
somehow works. Can't see that happening. It's in a comment.
This was solved in gocd source
go-agents setup with LWRP are created like here
The extra init.d scripts are created as symlinks
/etc/init.d/go-agent-1 -> /etc/init.d/go-agent
The service is not enabled in
/etc/rc2.d/
and trying to enable will fail:Reason is that
go-agent
is provided now by everygo-agent-*
instance.When copied
cp /etc/init.d/go-agent /etc/init.d/go-agent-1
and replacedProvides: go-agent
withProvides: go-agent-1
then it works.Probably cookbook should do copy and then replace service name instead of just creating links.