sd_notify
pub fn booted() -> Result<bool>
Checks whether the system has been booted by systemd.
systemd
This is implemented by verifying that a /run/systemd/system directory exists.
/run/systemd/system
let _ = sd_notify::booted();