From 452d014ae05dbb1b152d46a53e64fda1c6120e3b Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Wed, 19 Oct 2016 20:28:53 +0200 Subject: [PATCH] Fixes #1136 --- lgsm/functions/command_stop.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index 08464b405..489013e3d 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -245,8 +245,10 @@ fn_stop_teamspeak3(){ } fn_stop_mumble(){ + # Get needed port info + info_config.sh fn_print_dots "Stopping ${servername}" - 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 }') kill ${mumblepid} sleep 1 check_status.sh