How to use Bash script to automate server hang repair.
https://forums.alliedmods.net/showpo...9&postcount=25
Quote:
|
Re: BASH server wedges away
Cleaning up VPS today for new hardware. I found the script I used before this and before running own server hosting PHP script instead of getting it from game-monitor. They shutdown and that helped me do more than just Drupalize.
PHP Code:
|
Re: How to use Bash script to automate server hang repair.
Updated the last script so it works in 2019!
Code:
This then can be used to activate a pkill script on a seized up server. |
Re: How to use Bash script to automate server hang repair.
Whats the point of using third-party stuff in your scripts? That would stop working pretty insta after service changes its behavior.
|
Re: How to use Bash script to automate server hang repair.
Scroll to OP please. What you brought up is great. While the 3rd party feed approach is nicer than manually fixing a hung server. That was scrapped almost a decade ago with local services doing same feed also to favor the Zero-log method. When it got better? Luck. Simply installing Amxx 1.9.0 helped me find bad plugin and not need any script of the sort ever again. The 3rd party feed latency measuring needed a second check to assure it wasn't due to a map change and BAD needed to be 3000-5000 to be effective. Topple over I had at one point used 3rd party or any of a few of mine before performing pkill and long before switching to log file check. The local PHP was the fastest and the log file approach was the most reliable. Those same variances can happen on the LAN feed too. It amused me to see some sites are still running like that and it still works. We hope sites like that have more than 1 server 1 core budgets. Worse cases for more critical data are neither here nor there have happened.
|
Re: How to use Bash script to automate server hang repair.
Wish I would have done this years ago! No more hangs!!
Code:
|
All times are GMT -4. The time now is 22:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.