lib/Utils/Systemd.pm

Utils::Systemd

Utils::Systemd - Library for systemd related functionality

disable_and_stop_service

disable_and_stop_service($service_name[, mask_service => $mask_service][, ignore_failure => $ignore_failure]);

Disable and stop the service $service_name. Mask it if $mask_service evaluates to true. Default: false Raise a failure if $ignore_failure evaluates to true. Default: false

systemctl

Wrapper around systemctl call to be able to add some useful options.

Please note that return code of this function can be handled by either 'script_run' or 'assert_script_run' function, and as such, can be different.

get_started_systemd_services

Return list of started systemd services

clear_started_systemd_services

Clear the list of started systemd services

check_unit_file

Check if the unit file exist