Просмотр исходного кода

mumble uses tmux. no requirement for netstat #1892

Daniel Gibbs 7 лет назад
Родитель
Сommit
aea533f7d8
1 измененных файлов с 1 добавлено и 13 удалено
  1. 1 13
      lgsm/functions/check_status.sh

+ 1 - 13
lgsm/functions/check_status.sh

@@ -8,7 +8,7 @@
 local commandname="CHECK"
 local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-if [ "${gamename}" == "TeamSpeak 3" ]; then
+if [ "${shortname}" == "ts3" ]; then
 	# 1: Server is running
 	# 0: Server seems to have died
 	# 0: No server running (ts3server.pid is missing)
@@ -19,18 +19,6 @@ if [ "${gamename}" == "TeamSpeak 3" ]; then
 		ts3error="${status}"
 		status=0
 	fi
-
-elif [ "${gamename}" == "Mumble" ]; then
-	# Get config info
-	info_config.sh
-	# 1: Server is listening
-	# 0: Server is not listening, considered closed
-	mumblepid=$(netstat -nap  2>/dev/null | grep udp | grep "${port}" | grep murmur | awk '{ print $6 }' | awk -F'/' '{ print $1 }')
-	if [ -z "${mumblepid}" ]; then
-		status=0
-	else
-		status=1
-	fi
 else
 	status=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | grep -Ecx "^${servicename}")
 fi