Browse Source

altered to exitcodes

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
e385f56638
  1. 6
      lgsm/functions/command_monitor.sh

6
lgsm/functions/command_monitor.sh

@ -16,7 +16,7 @@ fn_monitor_check_lockfile(){
fn_print_info_nl "Disabled: No lock file found" fn_print_info_nl "Disabled: No lock file found"
fn_script_log_info "Disabled: No lock file found" fn_script_log_info "Disabled: No lock file found"
echo " * To enable monitor run ./${selfname} start" echo " * To enable monitor run ./${selfname} start"
exit 1 core_exit.sh
fi fi
} }
@ -26,7 +26,7 @@ fn_monitor_check_update(){
fn_print_info_nl "SteamCMD is currently checking for updates" fn_print_info_nl "SteamCMD is currently checking for updates"
fn_script_log_info "SteamCMD is currently checking for updates" fn_script_log_info "SteamCMD is currently checking for updates"
sleep 1 sleep 1
exit core_exit.sh
fi fi
} }
@ -42,7 +42,7 @@ fn_monitor_teamspeak3(){
fn_print_ok "Checking session: " fn_print_ok "Checking session: "
fn_print_ok_eol_nl fn_print_ok_eol_nl
fn_script_log_pass "Checking session: OK" fn_script_log_pass "Checking session: OK"
exit core_exit.sh
else else
fn_print_fail "Checking session: ${ts3error}: " fn_print_fail "Checking session: ${ts3error}: "
fn_print_fail_eol_nl fn_print_fail_eol_nl

Loading…
Cancel
Save