From 8c5888b355cda129ccd010b6ce9d5a15894adf13 Mon Sep 17 00:00:00 2001 From: zunnu Date: Mon, 20 Jun 2016 01:12:16 +0300 Subject: [PATCH] Countdown's for the server --- lgsm/functions/command_update_countdown.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lgsm/functions/command_update_countdown.sh b/lgsm/functions/command_update_countdown.sh index cb570e8ef..543ba0495 100644 --- a/lgsm/functions/command_update_countdown.sh +++ b/lgsm/functions/command_update_countdown.sh @@ -13,6 +13,15 @@ function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" check.sh command_execute.sh +# checks if the server is already stopped before trying to stop. + + check_status.sh + if [ "${status}" == "0" ]; then + fn_print_ok_nl "${servername} is already stopped" + fn_scriptlog "${servername} is already stopped" + update_check.sh + exit + fi update_countdown_timer(){