Explorar el Código

removed duplicate code

Daniel Gibbs hace 6 años
padre
commit
2559dcebe1
Se han modificado 1 ficheros con 0 adiciones y 19 borrados
  1. 0 19
      lgsm/functions/command_start.sh

+ 0 - 19
lgsm/functions/command_start.sh

@@ -24,30 +24,11 @@ fn_start_teamspeak3(){
 		sleep 5
 		touch "${servercfgfullpath}"
 	fi
-	fn_sleep_time
-	if [ -f "${lgsmlog}" ]; then
-		mv "${lgsmlog}" "${lgsmlogdate}"
-	fi
-
-	# Create lockfile.
-	date '+%s' > "${rootdir}/${lockselfname}"
 	# Accept license.
 	if [ ! -f "${executabledir}/.ts3server_license_accepted" ]; then
 		install_eula.sh
 	fi
-	cd "${executabledir}" || exit
 	fn_start_tmux
-	fn_sleep_time
-	check_status.sh
-	if [ "${status}" == "0" ]; then
-		fn_print_fail_nl "Unable to start ${servername}"
-		fn_script_log_fatal "Unable to start ${servername}"
-		echo -e "	Check log files: ${logdir}"
-		core_exit.sh
-	else
-		fn_print_ok_nl "${servername}"
-		fn_script_log_pass "Started ${servername}"
-	fi
 }
 
 fn_start_tmux(){