Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
host: Fix using --no-resurrect flag
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <lewis@lmars.net>
  • Loading branch information
lmars committed Jul 8, 2016
1 parent 8a53417 commit 3c78d53
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,14 @@ func runDaemon(args *docopt.Args) {
log.Info("got cluster peer IPs", "peers", peerIPs)
}
log.Info("connecting to cluster peers")
if err := discoverdManager.ConnectPeer(peerIPs); err != nil && !args.Bool["--no-resurrect"] {
if err := discoverdManager.ConnectPeer(peerIPs); err != nil {
log.Info("no cluster peers available")
}

log.Info("resurrecting jobs")
resurrect()
if !args.Bool["--no-resurrect"] {
log.Info("resurrecting jobs")
resurrect()
}

monitor := NewMonitor(host.discMan, externalIP, logger)
shutdown.BeforeExit(func() { monitor.Shutdown() })
Expand Down

0 comments on commit 3c78d53

Please sign in to comment.