Working...

Anything and everything about the game itself and our server

Moderator: Tommy

Tommy
I Worship His Shadow
Posts: 5265
Joined: Mon Mar 28, 2005 5:41 pm
Location: USA
Contact:

Working...

Unread post by Tommy »

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
Tommy
I Worship His Shadow
Posts: 5265
Joined: Mon Mar 28, 2005 5:41 pm
Location: USA
Contact:

Re: Working...

Unread post by Tommy »

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
Draco
Posts: 247
Joined: Sat Jul 07, 2007 10:07 pm
Location: El Paso
Contact:

Re: Working...

Unread post by Draco »

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
Image
User avatar
Evil
Posts: 1016
Joined: Sun Feb 03, 2008 12:41 am
Location: Wyoming

Re: Working...

Unread post by Evil »

3 minutes or even 5 is no big deal. Seems like that would work ok.
Image
User avatar
.::/3I§ON::.
Posts: 5562
Joined: Tue Mar 29, 2005 7:46 pm
Location: The MidWest's "BlackSheep" of {DOU}
Contact:

Re: Working...

Unread post by .::/3I§ON::. »

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
Some hosts don't let you use cron jobs.
{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"
Draco
Posts: 247
Joined: Sat Jul 07, 2007 10:07 pm
Location: El Paso
Contact:

Re: Working...

Unread post by Draco »

.::/3I§ON::. wrote:
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
Some hosts don't let you use cron jobs.
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.

~Johnny Jones
Image
QwazyWabbit
Posts: 162
Joined: Thu Jun 16, 2005 12:15 am
Location: Southern California, USA

Re: Working...

Unread post by QwazyWabbit »

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.
Draco
Posts: 247
Joined: Sat Jul 07, 2007 10:07 pm
Location: El Paso
Contact:

Re: Working...

Unread post by Draco »

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
Image
QwazyWabbit
Posts: 162
Joined: Thu Jun 16, 2005 12:15 am
Location: Southern California, USA

Re: Working...

Unread post by QwazyWabbit »

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. :)
User avatar
.::/3I§ON::.
Posts: 5562
Joined: Tue Mar 29, 2005 7:46 pm
Location: The MidWest's "BlackSheep" of {DOU}
Contact:

Re: Working...

Unread post by .::/3I§ON::. »

QwazyWabbit wrote: women of just about any size. :)

even I have limits man :eek2:
{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"
QwazyWabbit
Posts: 162
Joined: Thu Jun 16, 2005 12:15 am
Location: Southern California, USA

Re: Working...

Unread post by QwazyWabbit »

Depends on whether you are talking about bra size or a pair of double-wide motor homes. Yikes!
User avatar
GRouND ZeRo
Posts: 1431
Joined: Sun May 22, 2005 6:21 am
Location: CaNaDeH???

Re: Working...

Unread post by GRouND ZeRo »

.::/3I§ON::. wrote:
QwazyWabbit wrote: women of just about any size. :)

even I have limits man :eek2:
LMFAO!
{DOU}

Image
Post Reply

Return to “Clan {DOU} Unreal Tournament 99 Sniper Server”