def restart(name, jail=None):
 cmd = '{0} {1} onerestart'.format(_cmd(jail), name)
 return (not __salt__['cmd.retcode'](cmd, python_shell=False))

def restart ( name , jail = None ) : cmd = '{0} {1} onerestart' . format ( _cmd ( jail ) , name ) return ( not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) )
restart a service .