host/logbuf: Fix race on closed flag

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host/logbuf: Don’t leak log tailers

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Godeps: Use our fork of ActiveState/tail

This is a temporary measure until
ActiveState/tail#42 with StopAtEOF is merged.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host/logbuf: Fix race during close

When the log file is closed, any readers should read until the EOF so
that they don’t miss lines.

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

Fix logbuf issues
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>
website: Update cluster bootstrap documentation with `flynn-host init`

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