From e22c2f103e971b874f77c1c89708f3757acfc438 Mon Sep 17 00:00:00 2001 From: Dh0mp5eur Date: Fri, 18 Oct 2013 15:52:49 +0200 Subject: [PATCH] Fix bug Multiple Servers with Tmux --- DayOfDefeatSource/dodsserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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