Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(48)

Unified Diff: worker/machiner/machiner.go

Issue 6567067: cmd/jujud: allow for a clean exit
Patch Set: Created 13 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: worker/machiner/machiner.go
=== modified file 'worker/machiner/machiner.go'
--- worker/machiner/machiner.go 2012-09-21 12:08:44 +0000
+++ worker/machiner/machiner.go 2012-09-28 09:57:23 +0000
@@ -1,6 +1,7 @@
package machiner
import (
+ "errors"
"fmt"
"launchpad.net/juju-core/container"
"launchpad.net/juju-core/environs"
@@ -20,6 +21,8 @@
tools *state.Tools
}
+var ErrDead = errors.New("machine is dead")
+
// NewMachiner starts a machine agent running that
// deploys agents in the given directory.
// The Machiner dies when it encounters an error.
« upstart/upstart.go ('K') | « upstart/upstart_test.go ('k') | worker/uniter/uniter.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b