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