code: def restart(name):
      '''
      Restart the named service
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart <service name>
      '''
      cmd = '/usr/sbin/svcadm restart {0}'.format(name)
      if not __salt__['cmd.retcode'](cmd, python_shell=False):
          # calling restart doesn't clear maintenance
          # or tell us that the service is in the 'online' state
          return start(name)
      return Falsf restart(name):
      '''
      Restart the named service
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart <service name>
      '''
      cmd = '/usr/sbin/svcadm restart {0}'.format(name)
      if not __salt__['cmd.retcode'](cmd, python_shell=False):
          # calling restart doesn't clear maintenance
          # or tell us that the service is in the 'online' state
          return start(name)
      return False
docs: Restart the named service
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart <service name>