Add stop for connectors, servo_motor and tirette

This commit is contained in:
2024-04-11 17:48:56 +02:00
parent 36ff7122a5
commit 88f0c2df5e

View File

@@ -65,7 +65,7 @@ monitor_all() {
for pid in "${pids[@]}"; do
if ! kill -0 $pid 2>/dev/null; then
echo "Program with PID $pid has terminated, stopping other programs"
pkill -P $$ -f "lidar|arucoDetector|ihm_robot"
pkill -P $$ -f "lidar|arucoDetector|ihm_robot|connectors|servo_motor|tirette"
sleep 1
pkill -P $$ -f "socketServer"
return