code: def restart(name, runas=None):
      '''
      Unloads and reloads a launchd service.  Raises an error if the service
      fails to reload
  
      :param str name: Service label, file name, or full path
  
      :param str runas: User to run launchctl commands
  
      :return: ``True`` if successful
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart org.cups.cupsd
      '''
      # Restart the service: will raise an error if it fails
      if enabled(name):
          stop(name, runas=runas)
      start(name, runas=runas)
  
      return Truf restart(name, runas=None):
      '''
      Unloads and reloads a launchd service.  Raises an error if the service
      fails to reload
  
      :param str name: Service label, file name, or full path
  
      :param str runas: User to run launchctl commands
  
      :return: ``True`` if successful
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart org.cups.cupsd
      '''
      # Restart the service: will raise an error if it fails
      if enabled(name):
          stop(name, runas=runas)
      start(name, runas=runas)
  
      return True
docs: Unloads and reloads a launchd service.  Raises an error if the service
      fails to reload
  
      :param str name: Service label, file name, or full path
  
      :param str runas: User to run launchctl commands
  
      :return: ``True`` if successful
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.restart org.cups.cupsd