Log in

View Full Version : Random Zone Server Crash


WumelorWrath
12-19-2002, 03:20 PM
Ok here is the problem. Just at random times, zone servers of mine will shut themselves down. I am running 10 zone servers and after like 2 hours only 2 are running. At the end of each of the server dos windows. It says this.

Automatic shutdown
Message:----SERVER SHUTDOWN----
Zone shutdown: going to sleep

I dunno what my problem could be. I am running it through my router, but i had this problem before i had it going through my router so i know its not that. Ill post my boot10zones.bat too

REM: ****Read this first!!!****

REM: This file requires your real IP in the place of "YourIP" when you are connecting
REM: To the EQEmu Loginserver.

REM: When you are using minilogin, Replace all IP Addresses to say 127.0.0.1

REM: If you still get errors try using localhost instead of 127.0.0.1

REM:--------------Start-----------------------


@echo off
start zone . divineunrighteous.no-ip.org 7995 127.0.0.1
start zone . divineunrighteous.no-ip.org 7996 127.0.0.1
start zone . divineunrighteous.no-ip.org 7997 127.0.0.1
start zone . divineunrighteous.no-ip.org 7998 127.0.0.1
start zone . divineunrighteous.no-ip.org 7999 127.0.0.1
start zone . divineunrighteous.no-ip.org 8000 127.0.0.1
start zone . divineunrighteous.no-ip.org 8001 127.0.0.1
start zone . divineunrighteous.no-ip.org 8002 127.0.0.1
start zone . divineunrighteous.no-ip.org 8003 127.0.0.1
start zone . divineunrighteous.no-ip.org 8004 127.0.0.1
exit
cls


REM:---------------END------------------------
ANY kind of help would be appreciated please.

just_add_water
12-19-2002, 04:23 PM
Automatic shutdown
Message:----SERVER SHUTDOWN----
Zone shutdown: going to sleep


That only means theirs no players in the zone, it'll boot up a zone when a player tries zoning

Nivisec
12-19-2002, 10:49 PM
Happens to everyone to my knowledge. Some zones are just unstable at best currently and can kill zone.exe...Especially dungeons. (sol b for sure, crashes my zone server every time I enter and try to leave it).

I'd like to write a frontend myself for windows (linux servers can have this accomplished by simple scripts much easier with top, grep, and all the other fun utils) that would load all the processes for the server and restart if crashed...But I'm way too busy :( Maybe sometime next year...

WumelorWrath
12-20-2002, 02:36 AM
Nivisec, is that hard to do? if it isn't id be glad to do that and upload it to some web space, or even submit it under the 3rd party tools.

Nivisec
12-24-2002, 03:04 AM
Nivisec, is that hard to do? if it isn't id be glad to do that and upload it to some web space, or even submit it under the 3rd party tools.

I guess it would depend on how experienced you are in programming. You could basically use any win32 programming application though and just need to make a simple script in linux, which almost any shell can do.

For the windows one, all you need to do is make a application that loads threads of zone.exe and checks if they are still running, if not load it again.

For linux, I'd just make a small script that runs every few mins as a cron job. Have it do a top | grep zone.exe (I haven't actually used the linux one, so I'm not sure about unique identifying by just the process what port each zone.exe is running on). If there is no unique identifier, just see if you have the right number of zone.exe still loaded from the grep. If not, just probe all your ports that zone.exe should be running on and reload any zone.exe on ports not in available in the probe. In reality, you could just probe the ports and skip the top, but that's a waste of time if they aren't all running...top is fast, better to check before probing :)