Skip to main content

write_pidfile

Function write_pidfile 

Source
fn write_pidfile(options: &DevOptions) -> Result<(), DevError>
Expand description

Claim the pidfile for this process. Refuses the start when the file already names a LIVE foreign pid: overwriting it would leave that cluster with no waratah stop handle. A stale file (dead pid, or our own pid from a restarted run) is overwritten.