Start again on removal what the mesh's own declaration stopped (hq ADR 0269)
A unit found running and enabled that a declaration held stopped and disabled stayed stopped and disabled when the declaration went: ADR 0118 never starts a unit on the way out. Unassigning the zfs module would so have left the home server's pool with no scrub schedule at all, said nowhere. The host now records what it declared for a service (Declared, beside Found). On removal, a unit found running and declared stopped is started again, and one found enabled and declared disabled is enabled again, each read back; the report says restored, and the plan says it first. A record from before the field starts nothing.
This commit is contained in:
@@ -99,6 +99,12 @@ type Applied struct {
|
||||
// when its declaration goes; one the mesh started is stopped again. Absent on a record written
|
||||
// before the host kept it, and then the unit is left exactly as it is.
|
||||
Found *FoundUnit `json:"found,omitempty"`
|
||||
// Declared is, for a service with a state, what the mesh last held its unit to: running or stopped,
|
||||
// and enabled or disabled where the declaration said. With Found, it tells a unit the mesh's own
|
||||
// declaration stopped and disabled from one somebody stopped since, so removal gives back running
|
||||
// and enabled only the first (novox/hq ADR 0269). Absent on a record from before the host kept it,
|
||||
// and then nothing is started on the way out.
|
||||
Declared *FoundUnit `json:"declared,omitempty"`
|
||||
|
||||
// Into is set for a file written into rather than over (novox/hq ADR 0102): the format, what
|
||||
// each of the mesh's keys held before it set them, which of them were absent, and whether the
|
||||
|
||||
Reference in New Issue
Block a user