Skip to content

Commit

Permalink
mumble uses tmux. no requirement for netstat #1892
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 27, 2018
1 parent 7f311eb commit aea533f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lgsm/functions/check_status.sh
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit aea533f

Please sign in to comment.