pub fn watchdog_enabled(unset_env: bool, usec: &mut u64) -> bool
Expand description

Asks the service manager for enabled watchdog.

If the unset_env parameter is set, the WATCHDOG_USEC and WATCHDOG_PID environment variables will be unset before returning. Further calls to watchdog_enabled will fail, but child processes will no longer inherit the variable.

See sd_watchdog_enabled(3) for details.

Example

let mut usec = 0;
let enabled = sd_notify::watchdog_enabled(true, &mut usec);