Example #1
0
File: api.py Project: igoihman/vdsm
def processesStop():
    command = ["/bin/sh", _stopAllProcessesPath.cmd]
    rc, out, err = commands.execCmd(command)
    if rc:
        raise ge.GlusterProcessesStopFailedException(rc)
Example #2
0
File: api.py Project: dong-df/vdsm
def processesStop():
    command = ["/bin/sh", _stopAllProcessesPath.cmd]
    try:
        commands.run(command)
    except cmdutils.Error as e:
        raise ge.GlusterProcessesStopFailedException(e.rc)