Browse Source

change csgo stop mode to 9

pull/3171/head
Daniel Gibbs 5 years ago
parent
commit
0758277de0
  1. 2
      lgsm/config-default/config-lgsm/csgoserver/_default.cfg
  2. 10
      lgsm/functions/command_stop.sh

2
lgsm/config-default/config-lgsm/csgoserver/_default.cfg

@ -157,7 +157,7 @@ steammaster="true"
# 9: GoldSrc
# 10: Avorion
# 11: end
stopmode="3"
stopmode="9"
## Query mode
# 1: session only

10
lgsm/functions/command_stop.sh

@ -231,16 +231,6 @@ fn_stop_graceful_select(){
fn_stop_graceful_avorion
elif [ "${stopmode}" == "11" ]; then
fn_stop_graceful_cmd "end" 30
elif [ "${stopmode}" == "12" ]; then
# special stop for CSGO - needed if "-autoupdate" is set as launch option
# send a ctrl + c and after that use the quit method
fn_print_info_nl "Step 1: Graceful: CTRL+c"
fn_script_log_info "Step 1: Graceful: CTRL+c"
tmux send-keys -t "${sessionname}" C-c &> /dev/null
# send quit to stop the server in the end
fn_print_info_nl "Step 2: Graceful: quit"
fn_script_log_info "Step 2: Graceful: quit"
fn_stop_graceful_cmd "quit" 30
fi
}

Loading…
Cancel
Save