Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)