From 8d4aec054608daede992a6fb5dc5c98ff1cc7066 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 2f76831a..151164e4 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1219,6 +1219,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();