From 53c2c3dbc7cb8a7d91d519a898fc8d74eae91e48 Mon Sep 17 00:00:00 2001 From: oOraph <13552058+oOraph@users.noreply.github.com> Date: Mon, 8 Apr 2024 08:52:10 +0200 Subject: [PATCH] Regenerate ld.so.cache (#1708) fixes https://github.com/huggingface/text-generation-inference/issues/1711 Signed-off-by: Raphael Glon Co-authored-by: Raphael Glon --- launcher/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 63676392..aef09433 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1209,6 +1209,16 @@ fn terminate(process_name: &str, mut process: Child, timeout: Duration) -> io::R } fn main() -> Result<(), LauncherError> { + match Command::new("ldconfig").spawn() { + Ok(_) => {} + Err(err) => { + tracing::warn!( + "Unable to refresh ldconfig cache. Skipping (useless in most cases). Details {:?}", + err + ) + } + } + // Pattern match configuration let args: Args = Args::parse();