code: def add(event, reactors, saltenv='base', test=None):
      '''
      Add a new reactor
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-run reactor.add 'salt/cloud/*/destroyed' reactors='/srv/reactor/destroy/*.sls'
      '''
      if isinstance(reactors, string_types):
          reactors = [reactors]
  
      sevent = salt.utils.event.get_event(
              'master',
              __opts__['sock_dir'],
              __opts__['transport'],
              opts=__opts__,
              listen=True)
  
      master_key = salt.utils.master.get_master_key('root', __opts__)
  
      __jid_event__.fire_event({'event': event,
                                'reactors': reactors,
                                'key': master_key},
                               'salt/reactors/manage/add')
  
      res = sevent.get_event(wait=30, tag='salt/reactors/manage/add-complete')
      return res['result'f add(event, reactors, saltenv='base', test=None):
      '''
      Add a new reactor
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-run reactor.add 'salt/cloud/*/destroyed' reactors='/srv/reactor/destroy/*.sls'
      '''
      if isinstance(reactors, string_types):
          reactors = [reactors]
  
      sevent = salt.utils.event.get_event(
              'master',
              __opts__['sock_dir'],
              __opts__['transport'],
              opts=__opts__,
              listen=True)
  
      master_key = salt.utils.master.get_master_key('root', __opts__)
  
      __jid_event__.fire_event({'event': event,
                                'reactors': reactors,
                                'key': master_key},
                               'salt/reactors/manage/add')
  
      res = sevent.get_event(wait=30, tag='salt/reactors/manage/add-complete')
      return res['result']
docs: Add a new reactor
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-run reactor.add 'salt/cloud/*/destroyed' reactors='/srv/reactor/destroy/*.sls'