diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index d7b9ddd33..13236d0ae 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -173,7 +173,7 @@ fn_stop_ark(){ fi if [[ ${#queryport} -gt 0 ]] ; then - for (( pidcheck=0 ; pidcheck < ${MADPIDITER} ; pidcheck++ )) ; do + for (( pidcheck=0 ; pidcheck < ${MAXPIDITER} ; pidcheck++ )) ; do pid=$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] |\ grep :${queryport}[[:space:]] | rev | awk '{print $1}' |\ rev | cut -d\/ -f1)