component conferences: Clean stale Galène process if any before launching a new one.
This commit is contained in:
parent
bdca7d2354
commit
13db2e36fa
1 changed files with 5 additions and 0 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue