Browse Source

Fix bug Multiple Servers with Tmux

pull/9/head
Dh0mp5eur 12 years ago
parent
commit
e22c2f103e
  1. 2
      DayOfDefeatSource/dodsserver

2
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"

Loading…
Cancel
Save