Skip to main content

daemon_is_live

Function daemon_is_live 

Source
pub fn daemon_is_live(root: &Path) -> bool
Expand description

Whether a LIVE daemon is serving this home right now.

Both halves must hold: a lease naming a process that is alive, and a socket file beside it. A lease whose process is gone is stale and a socket left by a killed daemon is dead, so either alone would send the write into a void.