|
@@ -54,6 +54,23 @@ fn_monitor_teamspeak3(){
|
|
|
fi
|
|
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(){
|
|
fn_monitor_tmux(){
|
|
|
# checks that tmux session is running
|
|
# checks that tmux session is running
|
|
|
if [ "${status}" != "0" ]; then
|
|
if [ "${status}" != "0" ]; then
|
|
@@ -92,7 +109,9 @@ fn_monitor_check_update
|
|
|
fn_monitor_msg_checking
|
|
fn_monitor_msg_checking
|
|
|
if [ "${gamename}" == "Teamspeak 3" ]; then
|
|
if [ "${gamename}" == "Teamspeak 3" ]; then
|
|
|
fn_monitor_teamspeak3
|
|
fn_monitor_teamspeak3
|
|
|
|
|
+elif [ "${gamename}" == "Mumble" ]; then
|
|
|
|
|
+ fn_monitor_mumble
|
|
|
else
|
|
else
|
|
|
fn_monitor_tmux
|
|
fn_monitor_tmux
|
|
|
fi
|
|
fi
|
|
|
-core_exit.sh
|
|
|
|
|
|
|
+core_exit.sh
|