Utils::Systemd
- Library for systemd related functionality
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
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.
Return list of started systemd services
Clear the list of started systemd services
Check if the unit file exist