pub fn write_record( socket: &Path, role: &str, epoch: &str, reason: &ExitReason, ) -> Result<()>
Write the exit record for socket atomically (temp file plus rename).
socket