Browse Source

refactor: improve logging in command_stop.sh

- Changed `fn_script_log_error` to `fn_script_log_info` for consistency
- Removed unnecessary empty line
pull/4304/head
Daniel Gibbs 2 years ago
parent
commit
5de21291dc
  1. 5
      lgsm/modules/command_stop.sh

5
lgsm/modules/command_stop.sh

@ -256,7 +256,7 @@ fn_stop_tmux() {
fn_stop_pre_check() {
if [ "${status}" == "0" ]; then
fn_print_info_nl "${servername} is already stopped"
fn_script_log_error "${servername} is already stopped"
fn_script_log_info "${servername} is already stopped"
else
# Select graceful shutdown.
fn_stop_graceful_select
@ -282,11 +282,10 @@ fn_stop_pre_check
rm -f "${lockdir:?}/${selfname}-started.lock"
# If user ran the stop command monitor will become disabled.
if [ "${firstcommandname}" == "STOP" ];then
if [ "${firstcommandname}" == "STOP" ]; then
rm -f "${lockdir:?}/${selfname}-monitoring.lock"
fi
# Remove stopping lockfile.
rm -f "${lockdir:?}/${selfname}-stopping.lock"

Loading…
Cancel
Save