소스 검색

Fixing issues with ut2k4server restart not working

Daniel Gibbs 9 년 전
부모
커밋
74d22a839d
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      lgsm/functions/command_start.sh

+ 4 - 4
lgsm/functions/command_start.sh

@@ -29,9 +29,7 @@ fn_start_teamspeak3(){
 	if [ "${status}" != "0" ]; then
 		fn_print_info_nl "${servername} is already running"
 		fn_script_log_error "${servername} is already running"
-		if [ "${exitbypass}" ]; then
-			exit
-		else
+		if [ -z "${exitbypass}" ]; then
 			core_exit.sh
 		fi
 	fi
@@ -92,7 +90,9 @@ fn_start_tmux(){
 	if [ "${status}" != "0" ]; then
 		fn_print_info_nl "${servername} is already running"
 		fn_script_log_error "${servername} is already running"
-		core_exit.sh
+		if [ -z "${exitbypass}" ]; then
+			core_exit.sh
+		fi
 	fi
 
 	# Create lockfile