Browse Source

ts3 check status

pull/1073/head
Daniel Gibbs 9 years ago
parent
commit
b9c280eb3b
  1. 6
      lgsm/functions/command_stop.sh

6
lgsm/functions/command_stop.sh

@ -164,10 +164,16 @@ fn_stop_teamspeak3(){
fn_scriptlog "${servername}" fn_scriptlog "${servername}"
sleep 1 sleep 1
${filesdir}/ts3server_startscript.sh stop > /dev/null 2>&1 ${filesdir}/ts3server_startscript.sh stop > /dev/null 2>&1
check_status.sh
if [ "${status}" == "0" ]; then
# Remove lock file # Remove lock file
rm -f "${rootdir}/${lockselfname}" rm -f "${rootdir}/${lockselfname}"
fn_print_ok_nl "${servername}" fn_print_ok_nl "${servername}"
fn_scriptlog "Stopped ${servername}" fn_scriptlog "Stopped ${servername}"
else
fn_print_fail_nl "Unable to stop${servername}"
fn_scriptlog "Unable to stop${servername}"
fi
} }
fn_stop_tmux(){ fn_stop_tmux(){

Loading…
Cancel
Save