pub fn is_systemd(unit: &str) -> bool
Check if the current process is running under systemd as a service with the given unit name