From db21a94325c7465088a9ef3e4d035ba2bfeae764 Mon Sep 17 00:00:00 2001 From: breizhhardware Date: Wed, 8 May 2024 13:07:37 +0200 Subject: [PATCH] Add siginit to lidar --- startup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/startup.sh b/startup.sh index 6af90ba..7efea2e 100644 --- a/startup.sh +++ b/startup.sh @@ -104,6 +104,11 @@ monitor_all() { kill -SIGINT $other_pid 2>/dev/null continue fi + # Si le programme est 'lidar', envoyer SIGINT au lieu de SIGKILL + if ps -p $other_pid -o comm= | grep -q "lidar"; then + kill -SIGINT $other_pid 2>/dev/null + continue + fi kill -SIGKILL $other_pid 2>/dev/null fi done