Function prs_lib::systemd_bin::systemd_has_timer[][src]

pub fn systemd_has_timer(unit: &str) -> Result<bool>
Expand description

Check whether the given unit (transient timer) is running.

This may ask for root privileges through sudo.

Because this involves timers, if this operation fails it will also internally try to do the same for the given unit with a .timer suffix.