mirror of
https://github.com/modelec/Initialisation.git
synced 2026-03-18 21:30:40 +01:00
Add siginit to lidar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user