From 54eae918bf6ca12f346bf360d0e2ce2a35459d15 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 8 Jul 2016 21:17:30 +0100 Subject: [PATCH] fn_restart command_restart.sh --- lgsm/functions/command_monitor.sh | 2 +- lgsm/functions/monitor_gsquery.sh | 2 +- tests/tests_jc2server.sh | 4 ++-- tests/tests_ts3server.sh | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lgsm/functions/command_monitor.sh b/lgsm/functions/command_monitor.sh index 5860c08b6..d2a93a499 100644 --- a/lgsm/functions/command_monitor.sh +++ b/lgsm/functions/command_monitor.sh @@ -50,7 +50,7 @@ fn_monitor_teamspeak3(){ alert.sh fn_script_log_info "Monitor is starting ${servername}" sleep 1 - fn_restart + command_restart.sh fi } diff --git a/lgsm/functions/monitor_gsquery.sh b/lgsm/functions/monitor_gsquery.sh index d770397a3..1a4002c13 100644 --- a/lgsm/functions/monitor_gsquery.sh +++ b/lgsm/functions/monitor_gsquery.sh @@ -73,7 +73,7 @@ if [ "${gsquery}" == "yes" ]; then # Send alert if enabled alert="restartquery" alert.sh - fn_restart + command_restart.sh break fi diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index f2c84cd6c..3e62e78d1 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -289,7 +289,7 @@ echo "Description:" echo "restart ${gamename}." requiredstatus="ONLINE" fn_setstatus -fn_restart +command_restart.sh echo "" echo "Test complete!" sleep 1 @@ -300,7 +300,7 @@ echo "Description:" echo "restart ${gamename} while already stopped." requiredstatus="OFFLINE" fn_setstatus -fn_restart +command_restart.sh echo "" echo "Test complete!" sleep 1 diff --git a/tests/tests_ts3server.sh b/tests/tests_ts3server.sh index 7ea98bac7..f4a1d2769 100644 --- a/tests/tests_ts3server.sh +++ b/tests/tests_ts3server.sh @@ -273,7 +273,7 @@ echo "Description:" echo "restart ${gamename}." requiredstatus="ONLINE" fn_setstatus -fn_restart +command_restart.sh echo "" echo "Test complete!" sleep 1 @@ -284,7 +284,7 @@ echo "Description:" echo "restart ${gamename} while already stopped." requiredstatus="OFFLINE" fn_setstatus -fn_restart +command_restart.sh echo "" echo "Test complete!" sleep 1