Browse Source

Fixing issues with ut2k4server restart not working

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
b8bfebbd49
  1. 6
      lgsm/functions/command_start.sh
  2. 4
      lgsm/functions/fix_ut2k4.sh

6
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}"

4
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
Loading…
Cancel
Save