pub fn booted() -> Result<bool>
Expand description

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();