all: Fix os.Signal chan buffering

Package signal will not block sending to c: the caller must ensure that
c has sufficient buffer space to keep up with the expected signal rate.
For a channel used for notification of just one signal value, a buffer
of size 1 is sufficient.

Closes #590

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #624 from flynn/fix-signal

all: Fix os.Signal chan buffering
all: Update etcd to v2.0.0-rc.1

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
all: Use IANA-assigned ports for etcd

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
appliance/etcd: Add CA certificates to container image

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Update configuration file format

Configuration files are now JSON describing the arguments and
environment variables to add when running the daemon.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Fix panic converting error in log

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Add expose_env field to service manifest

Environment variables listed in this field are copied from the daemon
environment into the job.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Configure etcd clustering via environment variables directly

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
pkg: Add etcdcluster package

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host/cli: Add init command for configuring the cluster

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Default to 1-node etcd configuration if none is specified

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Lookup default external IP

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
discoverd: Bump etcd connection attempts to 10 minutes

When starting a v0.5 cluster for the first time it can take a while for
all of the nodes to show up.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Bump discoverd connection attempts to 10 minutes

When starting a etcd v0.5 cluster for the first time it can take a while
for all of the nodes to show up.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
test/cluster: Update etcd configuration for v2.0

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
test: Don’t try to close nil stream

If errors occur while creating the stream, it will be nil, so check
after checking the error.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
test: Fix races in CLISuite.TestRoute

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
wip debug