From b8bfebbd49a27b268fe23050d2cd328e78c818f9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 May 2017 22:48:53 +0100 Subject: [PATCH] Fixing issues with ut2k4server restart not working --- lgsm/functions/command_start.sh | 6 +++++- lgsm/functions/fix_ut2k4.sh | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index 0c8d30395..231947a35 100644 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -29,7 +29,11 @@ fn_start_teamspeak3(){ if [ "${status}" != "0" ]; then fn_print_info_nl "${servername} is already running" fn_script_log_error "${servername} is already running" - core_exit.sh + if [ "${exitbypass}" ]; then + exit + else + core_exit.sh + fi fi if [ -f "${lgsmlog}" ]; then mv "${lgsmlog}" "${lgsmlogdate}" diff --git a/lgsm/functions/fix_ut2k4.sh b/lgsm/functions/fix_ut2k4.sh index ae0088315..1957ac251 100644 --- a/lgsm/functions/fix_ut2k4.sh +++ b/lgsm/functions/fix_ut2k4.sh @@ -21,9 +21,13 @@ echo "applying server name fix." sleep 1 echo "forcing server restart..." sleep 1 +exitbypass=1 command_start.sh sleep 5 +exitbypass=1 command_stop.sh +exitbypass=1 command_start.sh sleep 5 +exitbypass=1 command_stop.sh \ No newline at end of file