def restart(name):
    cmd = '/etc/init.d/{0} restart'.format(name)
    return not __salt__['cmd.retcode'](cmd, python_shell=False)
Restart the named service
dataset/ETHPy150Open saltstack/salt/salt/modules/gentoo_service.py/restart