Просмотр исходного кода

Removing comments relating to parsing of the script (which is no longer performed)

cedarlug 10 лет назад
Родитель
Сommit
eb20cae44a
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      functions/command_stop.sh

+ 1 - 6
functions/command_stop.sh

@@ -30,13 +30,8 @@ sdtd_telnet(){
 }
 
 fn_stop_ark(){
-    # grab the queryport. there are two locations to grab this from.
-    # first start with the parameters from the parms line
     fn_printwarn "attempting to determine any in-use ports"
     fn_scriptlog "attempting to determine any in-use ports"
-        #port=$(grep ^parms= arkserver |\
-        #        awk -F"QueryPort=" '{print $2}' |\
-        #        sed "s/[^[:digit:].*].*//g" )
 	info_config.sh
         if [ -z $queryport ] ; then
                 fn_printwarn "no queryport found in the arkserver script"
@@ -175,7 +170,7 @@ else
                 let counter=counter+1
                 if [  "${counter}" -gt "1" ]; then
                     fn_printdots "Attempting graceful shutdown: ${counter}"
-                fi    
+                fi
             done
             pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -Ec "^${servicename}:")
             if [ "${pid}" == "0" ]; then