Working...
Moderator: Tommy
Working...
Working on an auto-retart script for this server since it seems to be going down a lot lately.
Once working, if the server hangs or crashes, the script will kill any lingering process if there and then restart the server. The most the server would then be down is like 3 minutes.
More as I figure it out.
T
Once working, if the server hangs or crashes, the script will kill any lingering process if there and then restart the server. The most the server would then be down is like 3 minutes.
More as I figure it out.
T
Re: Working...
Basically, this thing will query the server to see if it is running. Since the query will always result in a timeout when the server is in map vote, and the map vote is 90 seconds long (1.5 minutes) and we need to allow a bit of time for whatever, it will have to be a 3 minute value.
T
T
Re: Working...
Set-up a cron job to poll the process itself every 60 seconds. If the process disappears
off the list, cron will restart the process. That way you aren't having to worry about mapvotes
and queries. Have a good one.
~Johnny Jones
off the list, cron will restart the process. That way you aren't having to worry about mapvotes
and queries. Have a good one.
~Johnny Jones
Re: Working...
3 minutes or even 5 is no big deal. Seems like that would work ok.
- .::/3I§ON::.
- Posts: 5562
- Joined: Tue Mar 29, 2005 7:46 pm
- Location: The MidWest's "BlackSheep" of {DOU}
- Contact:
Re: Working...
Some hosts don't let you use cron jobs.Draco wrote:Set-up a cron job to poll the process itself every 60 seconds. If the process disappears
off the list, cron will restart the process. That way you aren't having to worry about mapvotes
and queries. Have a good one.
~Johnny Jones
{DOU}.::/3I§ON::.
"Did you hear the one about me trying to die?
Fist in the air and a finger to the sky.
Do I care if you hate me? Do you wanna know the truth?
C'est la vie... adiós... good riddance... fuck you!..."5FDP"
Fist in the air and a finger to the sky.
Do I care if you hate me? Do you wanna know the truth?
C'est la vie... adiós... good riddance... fuck you!..."5FDP"
Re: Working...
That is completely true but DOU controls its dedicated box to run all of its servers on so a cron job would be no issue at all to run..::/3I§ON::. wrote:Some hosts don't let you use cron jobs.Draco wrote:Set-up a cron job to poll the process itself every 60 seconds. If the process disappears
off the list, cron will restart the process. That way you aren't having to worry about mapvotes
and queries. Have a good one.
~Johnny Jones
~Johnny Jones
-
- Posts: 162
- Joined: Thu Jun 16, 2005 12:15 am
- Location: Southern California, USA
Re: Working...
After some debugging, I have altered the q2monitor script I use for my Q2 servers to start and run the UT sniper server. The new script pings the UT server every 10 secs and if it fails to respond to 9 consecutive pings it declares it down and kills any zombies and does a restart. The advantage of this method is that it detects a hung server, not just an existing process.
If the map vote timeout is an issue and it really doesn't respond to pings during that interval we can increase the timeout in the monitor. Let me know how it goes. Tommy still has to test it and prove it will restart the server when needed.
14:37 EST: I've watched the server through several map changes now with a 90 second restart threshold and the monitor has not attempted to restart the server unnecessarily. Either it's working great or it can't reset it. Still waiting to see a server crash.
If the map vote timeout is an issue and it really doesn't respond to pings during that interval we can increase the timeout in the monitor. Let me know how it goes. Tommy still has to test it and prove it will restart the server when needed.
14:37 EST: I've watched the server through several map changes now with a 90 second restart threshold and the monitor has not attempted to restart the server unnecessarily. Either it's working great or it can't reset it. Still waiting to see a server crash.
Re: Working...
Do an adminlogin and then an admin quit in the console. It'll kill the server and you'll see if the script is working. I gotta say it's a brilliant idea when you describe the hung-up server, Wabbit. I have to say that going from Linux to windows, the only advantage it has is that the start-up scripts actually work and the server never stays down more than 20 seconds, otherwise I'd be bribing you with beer, cash, and women to get this from you. Have a good one.
~Johnny Jones
~Johnny Jones
-
- Posts: 162
- Joined: Thu Jun 16, 2005 12:15 am
- Location: Southern California, USA
Re: Working...
Yes to all three. You now have a working auto-restart for UT on Linux. Send the check, I like Corona (I have my own lemons) and young and eager women of just about any size.
- .::/3I§ON::.
- Posts: 5562
- Joined: Tue Mar 29, 2005 7:46 pm
- Location: The MidWest's "BlackSheep" of {DOU}
- Contact:
Re: Working...
QwazyWabbit wrote: women of just about any size.
even I have limits man
{DOU}.::/3I§ON::.
"Did you hear the one about me trying to die?
Fist in the air and a finger to the sky.
Do I care if you hate me? Do you wanna know the truth?
C'est la vie... adiós... good riddance... fuck you!..."5FDP"
Fist in the air and a finger to the sky.
Do I care if you hate me? Do you wanna know the truth?
C'est la vie... adiós... good riddance... fuck you!..."5FDP"
-
- Posts: 162
- Joined: Thu Jun 16, 2005 12:15 am
- Location: Southern California, USA
Re: Working...
Depends on whether you are talking about bra size or a pair of double-wide motor homes. Yikes!
- GRouND ZeRo
- Posts: 1431
- Joined: Sun May 22, 2005 6:21 am
- Location: CaNaDeH???
Re: Working...
LMFAO!.::/3I§ON::. wrote:QwazyWabbit wrote: women of just about any size.
even I have limits man
{DOU}