GS Cache: Bind to either network port or socket, not both.
Before this change, gs_archive_server cannot just bind to a socket because
there is always a default port to listen. This makes it hard to start multiple
instances to bind on sockets (because we have to assign ports for all of
instanceses even when we don't want to).
In this change, I changed the option --socket and --port to be a mutual
exclusive group, which means one and only one could be specified. This
makes it easier for Puppet to start multiple intances.
TEST=Ran and verified the sever with different combination of options.
Commit-Ready: Congbin Guo <email@example.com>
Tested-by: Congbin Guo <firstname.lastname@example.org>
Reviewed-by: Congbin Guo <email@example.com>
1 file changed