def start_broker(host, connection, verbose): """Execute the start""" _, stdout, stderr = connection.sudo_command(START_COMMAND) if verbose: report_stdout(host, stdout) report_stderr(host, stderr)
def stop_broker(host, connection, stop_command, verbose): """Execute the stop""" _, stdout, stderr = connection.sudo_command(stop_command) if verbose: report_stdout(host, stdout) report_stderr(host, stderr)