cedarlug il y a 10 ans
Parent
commit
570002cfce
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lgsm/functions/command_stop.sh

+ 1 - 1
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)