Skip to main content

Crate planarian_recovery

Crate planarian_recovery 

Source
Expand description

planarian-recovery (ยง12 recovery watchdog). A separate unit with Restart=always, started before planariad and independent of it. Every 10 s it reads the journal. A transaction in Activating, Checking, Published, Promoted or Reverting whose owner is dead, or whose lease went unrenewed past its deadline, is taken over: fence, confirm quiescence, then run the crash-recovery table. From Checking that means the entire authorized commit path, or a revert; never a partial path. When the daemon is alive and renewing, the watchdog does nothing.

Constantsยง

PERIOD ๐Ÿ”’

Functionsยง

core_hash_check ๐Ÿ”’
I2 in Phase A-D (ยง12dโ€™s independent check, B-12): every Planarian binary and script the generation installs hashes to what was recorded at build (<sha256> <path> per line). A mismatch, a missing file or a record that is not in that form is an Integrity failure: report it and stop with status 78; the posture units respond.
main ๐Ÿ”’
pass ๐Ÿ”’