Browse Source

added mumble monitoring

pull/947/head
UltimateByte 9 years ago
committed by GitHub
parent
commit
307e72a3a1
  1. 21
      lgsm/functions/command_monitor.sh

21
lgsm/functions/command_monitor.sh

@ -54,6 +54,23 @@ fn_monitor_teamspeak3(){
fi
}
fn_monitor_mumble(){
if [ "${status}" != "0" ]; then
fn_print_ok "Checking session: "
fn_print_ok_eol_nl
fn_script_log_pass "Checking session: OK"
else
fn_print_error "Checking session: Not listening to port ${port}"
fn_print_fail_eol_nl
fn_script_log_error "Checking session: Not listening to port ${port}"
failurereason="Checking session: Not listening to port ${port}"
alert="restart"
alert.sh
fn_script_log_info "Monitor is starting ${servername}"
sleep 1
command_restart.sh
fi
}
fn_monitor_tmux(){
# checks that tmux session is running
if [ "${status}" != "0" ]; then
@ -92,7 +109,9 @@ fn_monitor_check_update
fn_monitor_msg_checking
if [ "${gamename}" == "Teamspeak 3" ]; then
fn_monitor_teamspeak3
elif [ "${gamename}" == "Mumble" ]; then
fn_monitor_mumble
else
fn_monitor_tmux
fi
core_exit.sh
core_exit.sh

Loading…
Cancel
Save