mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +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"
|
||||
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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"
|
||||
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
@ -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
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user