def restart(name):
    ret = exec_cmd("/etc/init.d/{0} restart".format(name))
    if ret['returncode'] != 0:
        raise ResourceException(ret['stderr'])
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/services-plugin/services-systemv.py/restart/original