Browse Source

refactor: dont try to stop a server that is already stopped

pull/4304/head
Daniel Gibbs 2 years ago
parent
commit
ba71211382
  1. 10
      lgsm/modules/command_stop.sh

10
lgsm/modules/command_stop.sh

@ -260,11 +260,11 @@ fn_stop_pre_check() {
else else
# Select graceful shutdown. # Select graceful shutdown.
fn_stop_graceful_select fn_stop_graceful_select
fi # Check status again, a kill tmux session if graceful shutdown failed.
# Check status again, a kill tmux session if graceful shutdown failed. check_status.sh
check_status.sh if [ "${status}" != "0" ]; then
if [ "${status}" != "0" ]; then fn_stop_tmux
fn_stop_tmux fi
fi fi
} }

Loading…
Cancel
Save