Browse Source

fn_script_log_fail doesn't exist & mumblepid

UltimateByte 10 years ago
parent
commit
c52fc7f5c3
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lgsm/functions/command_stop.sh

+ 4 - 3
lgsm/functions/command_stop.sh

@@ -208,15 +208,16 @@ fn_stop_teamspeak3(){
 		fn_script_log_pass "Stopped ${servername}"
 		fn_script_log_pass "Stopped ${servername}"
 	else
 	else
 		fn_print_fail_nl "Unable to stop ${servername}"
 		fn_print_fail_nl "Unable to stop ${servername}"
-		fn_script_log_fail "Unable to stop ${servername}"
+		fn_script_log_error "Unable to stop ${servername}"
 	fi
 	fi
 }
 }
 
 
 fn_stop_mumble(){
 fn_stop_mumble(){
 	fn_print_dots "Stopping ${servername}"
 	fn_print_dots "Stopping ${servername}"
-	check_status.sh
+	mumblepid=$(netstat -nap  2>/dev/null | grep udp | grep 64738 | grep murmur | awk '{ print $6 }' | awk -F'/' '{ print $1 }')
 	kill ${mumblepid}
 	kill ${mumblepid}
 	sleep 1
 	sleep 1
+	check_status.sh
 	if [ "${status}" == "0" ]; then
 	if [ "${status}" == "0" ]; then
 		# Remove lock file
 		# Remove lock file
 		rm -f "${rootdir}/${lockselfname}"
 		rm -f "${rootdir}/${lockselfname}"
@@ -224,7 +225,7 @@ fn_stop_mumble(){
 		fn_script_log_pass "Stopped ${servername}"
 		fn_script_log_pass "Stopped ${servername}"
 	else
 	else
 		fn_print_fail_nl "Unable to stop ${servername}"
 		fn_print_fail_nl "Unable to stop ${servername}"
-		fn_script_log_fail "Unable to stop ${servername}"
+		fn_script_log_error "Unable to stop ${servername}"
 	fi
 	fi
 }
 }