소스 검색

Added graceful stop when possible.

Should work on source servers and gold source servers. If the server also has a quit command outside those then this should do it also.
Andre 10 년 전
부모
커밋
a34663febf
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      functions/fn_stop

+ 2 - 0
functions/fn_stop

@@ -124,6 +124,8 @@ else
         fn_printfail "${servername} is already stopped"
         fn_scriptlog "${servername} is already stopped"
     else
+        tmux send -t "${servicename}" quit ENTER
+        sleep 20
         tmux kill-session -t "${servicename}"
         fn_printok "${servername}"
         fn_scriptlog "Stopped ${servername}"