mirror of
https://github.com/modelec/Initialisation.git
synced 2026-01-18 15:57:20 +01:00
Add stop for connectors, servo_motor and tirette
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user