consul/command
Sean Chittenden 7a814fce63 Print a helpful message re: duplicate addresses
IP sockets provide nice endpoints where the kernel will fail to bind and will error out saying socket already in use.  UNIX sockets, however, don't enjoy this nice property when cleaning up stale sockets on listen.  Given the number of addresses in Consul, provide operators with a helpful message that indicates the source of the reused address.

Before this fix, it was possible for the HTTP socket to unlink the RPC socket, leading to confusing blocked behavior when running commands like `consul info`.

```
% cat tmp.config.json
{
    "addresses": {
	"http": "unix:///tmp/.consul.sock",
	"rpc": "unix:///tmp/.consul.sock"
    },
    "unix_sockets": {
	"mode": "0700"
    }
}
% consul agent -config-file tmp.config.json -advertise=127.0.0.1 -data-dir=/tmp/
==> All listening endpoints must be unique: HTTP address already configured for RPC
Exit 1
```
2016-04-01 10:20:45 -07:00
..
agent Print a helpful message re: duplicate addresses 2016-04-01 10:20:45 -07:00
configtest.go command: fix configtest help format 2015-05-11 09:42:26 -07:00
configtest_test.go fixes issue #1661 and adds supporting test 2016-02-09 10:35:39 -05:00
event.go command: event command supports -token arg 2015-06-22 16:59:41 -07:00
event_test.go
exec.go Fix formatting in exec help 2016-02-06 12:28:56 -06:00
exec_test.go Update tests - NodeService init needs bool 2015-08-20 09:09:26 -07:00
force_leave.go
force_leave_test.go
info.go Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+. 2015-11-25 17:59:16 -08:00
info_test.go
join.go
join_test.go
keygen.go
keygen_test.go
keyring.go agent: write-level keyring ACLs work 2015-07-07 10:36:51 -06:00
keyring_test.go
leave.go
leave_test.go
lock.go Makes the timeout behavior more intuitive. 2016-01-06 09:40:20 -08:00
lock_test.go Makes the timeout behavior more intuitive. 2016-01-06 09:40:20 -08:00
maint.go
maint_test.go Adds missing token to maint unit test. 2015-09-10 14:53:00 -07:00
members.go Used 'unconvert' to remove unneeded conversions 2016-03-18 16:12:56 +01:00
members_test.go Include DC in the members command output 2015-05-15 23:26:34 +02:00
monitor.go
reload.go
reload_test.go
rpc.go command: remote exec takes -token parameter 2015-06-22 17:16:28 -07:00
rpc_test.go
rtt.go Correct the rtt -wan error message 2016-03-04 16:27:30 -05:00
rtt_test.go Completes rebase of network coordinates to new memdb. 2015-10-23 15:23:01 -07:00
util_test.go agent: scada client and HTTP server are tracked separately 2015-08-25 16:59:53 -07:00
util_unix.go
util_windows.go
version.go
version_test.go
watch.go
watch_test.go