Browse Source

updated to ts3server code

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
87a2d72297
  1. 40
      lgsm/functions/command_start.sh

40
lgsm/functions/command_start.sh

@ -31,28 +31,26 @@ 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"
core_exit.sh
fi
mv "${scriptlog}" "${scriptlogdate}"
# Create lock file
date > "${rootdir}/${lockselfname}"
cd "${executabledir}"
if [ "${ts3serverpass}" == "1" ];then
./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}"
else else
./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1 mv "${scriptlog}" "${scriptlogdate}"
fi # Create lock file
sleep 1 date > "${rootdir}/${lockselfname}"
check_status.sh cd "${executabledir}"
if [ "${status}" == "0" ]; then if [ "${ts3serverpass}" == "1" ];then
fn_print_fail_nl "Unable to start ${servername}" ./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}"
fn_script_log_fatal "Unable to start ${servername}" else
echo -e " Check log files: ${rootdir}/log" ./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1
core_exit.sh fi
else sleep 1
fn_print_ok_nl "${servername}" check_status.sh
fn_script_log_pass "Started ${servername}" 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: ${rootdir}/log"
else
fn_print_ok_nl "${servername}"
fn_script_log_pass "Started ${servername}"
fi
fi fi
} }

Loading…
Cancel
Save