diff --git a/libervia/backend/plugins/plugin_comp_conferences/__init__.py b/libervia/backend/plugins/plugin_comp_conferences/__init__.py index b911ee95..5538b743 100644 --- a/libervia/backend/plugins/plugin_comp_conferences/__init__.py +++ b/libervia/backend/plugins/plugin_comp_conferences/__init__.py @@ -417,6 +417,10 @@ class ConferencesComponent: galene_static_path = galene_path.parent / "static" self.galene_group_path = galene_data_path / "groups" self.galene_group_path.mkdir(0o700, parents=True, exist_ok=True) + pid_file = G.config.common.pid_dir / "galene.pid" + # We check that we don't have a stale process from a previous run, and kill it. + # This can happen on crash/unclean exit of backend. + async_process.kill_stale_process(pid_file, galene_data_path) env = os.environ if self.verbose >= 2: # We activate Galène debug logs on ICE candidates. @@ -434,6 +438,7 @@ class ConferencesComponent: path=str(galene_data_path), verbose=bool(self.verbose), env=env, + pid_file=pid_file, ) except Exception: log.exception("Can't start Galene.")