Browse Source

port is a variable

Partially fixes #1136
dev hardcoded stuff was still being in code
pull/1138/head
UltimateByte 9 years ago
committed by GitHub
parent
commit
36c49850d1
  1. 2
      lgsm/functions/check_status.sh

2
lgsm/functions/check_status.sh

@ -23,7 +23,7 @@ if [ "${gamename}" == "TeamSpeak 3" ]; then
elif [ "${gamename}" == "Mumble" ]; then elif [ "${gamename}" == "Mumble" ]; then
# 1: Server is listening # 1: Server is listening
# 0: Server is not listening, considered closed # 0: Server is not listening, considered closed
mumblepid=$(netstat -nap 2>/dev/null | grep udp | grep 64738 | grep murmur | awk '{ print $6 }' | awk -F'/' '{ print $1 }') mumblepid=$(netstat -nap 2>/dev/null | grep udp | grep ${port} | grep murmur | awk '{ print $6 }' | awk -F'/' '{ print $1 }')
if [ -z "${mumblepid}" ]; then if [ -z "${mumblepid}" ]; then
status=0 status=0
else else

Loading…
Cancel
Save