|
@ -109,8 +109,8 @@ fn_runfunction |
|
|
core_functions.sh |
|
|
core_functions.sh |
|
|
|
|
|
|
|
|
fn_currentstatus_tmux(){ |
|
|
fn_currentstatus_tmux(){ |
|
|
pid=$(tmux list-sessions 2>&1 | awk '{print $1}' | grep -Ec "^${servicename}:") |
|
|
check_status.sh |
|
|
if [ "${pid}" != "0" ]; then |
|
|
if [ "${status}" != "0" ]; then |
|
|
currentstatus="ONLINE" |
|
|
currentstatus="ONLINE" |
|
|
else |
|
|
else |
|
|
currentstatus="OFFLINE" |
|
|
currentstatus="OFFLINE" |
|
@ -118,9 +118,8 @@ fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fn_currentstatus_ts3(){ |
|
|
fn_currentstatus_ts3(){ |
|
|
ts3status=$(${executable} status servercfgfullpathfile=${servercfgfullpath}) |
|
|
check_status.sh |
|
|
|
|
|
if [ "${status}" != "0" ]; then |
|
|
if [ "${ts3status}" == "Server is running" ]; then |
|
|
|
|
|
currentstatus="ONLINE" |
|
|
currentstatus="ONLINE" |
|
|
else |
|
|
else |
|
|
currentstatus="OFFLINE" |
|
|
currentstatus="OFFLINE" |
|
|