code: def setup(self, services):
      
      super(SchedulerService, self).setup(services)
      # Register filesystem event handlers on an FSEventService instance.
      self._fs_event_service.register_all_files_handler(self._enqueue_fs_event)
  
      # N.B. We compute the invalidating fileset eagerly at launch with an assumption that files
      # that exist at startup are the only ones that can affect the running daemon.
      if self._invalidation_globs:
        self._invalidating_snapshot = self._get_snapshot()
        self._invalidating_files = self._invalidating_snapshot.files
        self._logger.info('watching invalidating files: {}'.format(self._invalidating_files))
  
      if self._pantsd_pidfile:
        self._fs_event_service.register_pidfile_handler(self._pantsd_pidfile, self._enqueue_fs_event)
docs: Service setup.