|
@ -71,7 +71,7 @@ fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_runcheck(){ |
|
|
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 |
|
|
if [ ${tmuxwc} -eq 1 ];then |
|
|
fn_serverquery |
|
|
fn_serverquery |
|
|
echo -en "\r[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} is already running" |
|
|
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}" |
|
|
echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" |
|
|
exit 1;; |
|
|
exit 1;; |
|
|
esac |
|
|
esac |
|
|
exit |
|
|
exit |
|
|