diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 2aea6ef95..98aa1e277 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -72,7 +72,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -653,4 +653,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index d984e85a1..a355dadb3 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -72,7 +72,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -627,4 +627,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index ec0c75ff4..54d889a0a 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -71,7 +71,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -626,4 +626,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 0153056d0..22c06dfcc 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -71,7 +71,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -624,4 +624,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 94378d89f..b4a380c41 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -71,7 +71,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -626,4 +626,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index 4d8ecea64..5136b9845 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -70,7 +70,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -724,4 +724,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install|map-compressor|steam-auth}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index fdd843e1b..a25e5b3cc 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -71,7 +71,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -626,4 +626,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index 54457e8e8..040c66de6 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -77,7 +77,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 5ccaba458..a048015b0 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -70,7 +70,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -755,4 +755,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install|map-compressor|steam-auth}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 189c29c84..f58338e95 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -72,7 +72,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -627,4 +627,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/TheHiddenSource/thsserver b/TheHiddenSource/thsserver index 138bab3ba..8de6ec7b4 100644 --- a/TheHiddenSource/thsserver +++ b/TheHiddenSource/thsserver @@ -66,7 +66,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -662,4 +662,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|install|debug|email-test|details}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index cb87b6265..4d2f6a2f6 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -63,7 +63,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -715,4 +715,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|monitor|email-test|details|backup|console|debug|install|map-compressor}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index dd9aee45c..8a9120f6c 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -63,7 +63,7 @@ fi } fn_runcheck(){ -tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|wc -l) +tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep ${servicename}|wc -l) if [ ${tmuxwc} -eq 1 ];then fn_serverquery echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" @@ -697,4 +697,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install|map-compressor|steam-auth}" exit 1;; esac -exit \ No newline at end of file +exit