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 is handle by 'script_run' or 'assert_script_run' function, and as such, can be different.