瀏覽代碼

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