def METHOD_NAME(self):
    self.logger.info(f'Check if we are already running a Tribler instance in: {self.config.state_dir}')
    root_state_dir = get_root_state_directory(create=True)
    current_process = TriblerProcess.current_process(ProcessKind.Core)
    self.process_manager = ProcessManager(root_state_dir, current_process)
    set_global_process_manager(self.process_manager)
    if not self.process_manager.current_process.become_primary():
        msg = 'Another Core process is already running'
        self.logger.warning(msg)
        self.process_manager.sys_exit(1, msg)