mirror of
https://github.com/modelec/Initialisation.git
synced 2026-01-19 00:07:20 +01:00
Kill the sockerServer in last (1sec after the other)
This commit is contained in:
@@ -34,7 +34,9 @@ monitor_all() {
|
||||
for pid in $pids; do
|
||||
if ps -p $pid > /dev/null; then
|
||||
echo "Program with PID $pid has terminated, stopping other programs"
|
||||
pkill -P $$ -f "socketServer|lidar|arucoDetector|ihm_robot"
|
||||
pkill -P $$ -f "lidar|arucoDetector|ihm_robot"
|
||||
sleep 1
|
||||
pkill -P && -f "socketServer"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user