mirror of
https://github.com/modelec/Initialisation.git
synced 2026-01-19 00:07: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
|
for pid in "${pids[@]}"; do
|
||||||
if ! kill -0 $pid 2>/dev/null; then
|
if ! kill -0 $pid 2>/dev/null; then
|
||||||
echo "Program with PID $pid has terminated, stopping other programs"
|
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
|
sleep 1
|
||||||
pkill -P $$ -f "socketServer"
|
pkill -P $$ -f "socketServer"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user