[][src]Function sd_notify::booted

pub fn booted() -> Result<bool>

Checks whether the system has been booted by systemd.

This is implemented by verifying that a /run/systemd/system directory exists.

Example

let _ = sd_notify::booted();