mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 04:27:35 +08:00
commit
89cc6c31af
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user