liftof_rb::api

Function is_systemd_process

Source
pub fn is_systemd_process() -> bool
Expand description

Check for the environmental variable LIFTOF_IS_SYSTEMD which is set in the liftof.service file to determine wether liftof is executed through systemd.

WARN - this is not elegant, but all other approaches did not work!