pub struct DefinitionDrift {
pub path: PathBuf,
pub installed_by_version: String,
pub rendered: String,
pub start_mode: StartMode,
pub manager: DefinitionKind,
}Expand description
An installed service definition that differs from what this build renders for the same recorded installation.
§Why this exists
An upgrade replaces the binary a registration runs and nothing else. A
systemd unit written by 0.4.7 still carried LoadCredential=, which hands
the daemon a copy of the credential frozen at service start, and lacked
write access to the credential store. Every release after the fix kept
running under that unit: the daemon could neither renew the token nor see
one renewed by anybody else, and stopped starting runners the moment the
frozen access token expired.
Fields§
§path: PathBufThe definition file on disk.
installed_by_version: StringThe build that wrote it, as its install record says.
rendered: StringWhat this build renders in its place.
start_mode: StartModeThe start mode it was installed for.
manager: DefinitionKindWhich manager reads the definition.