11-25-2011, 03:56 PM
Before anyone tells me to put "-autoupdate" in the command line and says that srcds_linux already auto-restarts servers on crash, listen I say. Yes, on most occasions it does auto-resart the server, but also on many it does not, and I end up finding out a day later that one my servers is offline. I was thinking of different approaches to fix this problem.
I started working on a python script that would send A2S_INFO queries to the selected server IP and port and restart the server if the query is not responded to (same concept as SRCDS Admin uses, but for linux). Then I started searching this forum and found that I can use "netstat -a | grep 27015" in order to see whether a specific port is being used.
So the reason I decided to come here and post is to ask of different solutions you guys use to auto-restart your servers or the ones you have for me. Please tell me what you have.
I started working on a python script that would send A2S_INFO queries to the selected server IP and port and restart the server if the query is not responded to (same concept as SRCDS Admin uses, but for linux). Then I started searching this forum and found that I can use "netstat -a | grep 27015" in order to see whether a specific port is being used.
So the reason I decided to come here and post is to ask of different solutions you guys use to auto-restart your servers or the ones you have for me. Please tell me what you have.