|
cmd/jujud: allow for a clean exit
When a unit or a machine dies, we want the
unit or machine agent to exit cleanly, so
prepare for the worker to return ErrDead in that
case, and exit cleanly when the unit or machine
is dead to start with.
Reviewed at https://codereview.appspot.com/6567067/.
https://code.launchpad.net/~rogpeppe/juju-core/093-jujud-lifecycle/+merge/126998
(do not edit description out of merge proposal)
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+196 lines, -80 lines) |
Patch |
 |
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/machine.go
|
View
|
|
4 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/jujud/machine_test.go
|
View
|
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/unit.go
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/unit_test.go
|
View
|
|
3 chunks |
+85 lines, -28 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/upgrade_test.go
|
View
|
|
9 chunks |
+52 lines, -51 lines |
0 comments
|
Download
|
 |
M |
upstart/upstart.go
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
upstart/upstart_test.go
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
worker/environ.go
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 1
|