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