From 13db2e36fa44d687e3d6ec420782e8504c2cdf17 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 23 Sep 2026 18:25:38 +0200 Subject: [PATCH] =?UTF-8?q?component=20conferences:=20Clean=20stale=20Gal?= =?UTF-8?q?=C3=A8ne=20process=20if=20any=20before=20launching=20a=20new=20?= =?UTF-8?q?one.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libervia/backend/plugins/plugin_comp_conferences/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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.")