Page 1 of 1

Linux Server "exit" itself?

Posted: Tue Apr 02, 2013 7:00 pm
by John Adams
Not sure if this is a real bug yet, but this is the weirdest thing... I saw the DB Project server was down, checked the log to see what the crash was... and there was no crash. It "Exit"d... like someone at Windows console typed "exit".
23:56:04 D Player: Toggling Character OFFLINE!
23:56:04 D CClient: Client Disconnect...
23:56:04 D Zone: Starting zone shutdown timers...
23:56:04 I Zone: Initiating zone shutdown of 'FrostfangSea'
23:56:05 I Zone: Completed zone shutdown of 'FrostfangSea'
23:56:05 I World: Zone shutdown complete
23:56:05 D World: Shutting down LUA interface...
23:56:05 D World: Removing connection...
23:56:05 D World: Removing connection...
23:56:05 I World: Exiting... we hope you enjoyed your flight.
BUTT! No one but me has access, and I certainly was not away typing at any consoles at 11:56pm last night :) Not only that, but I'm pretty sure Linux doesn't even support console commands, especially in a shelled launch (&)... so I have no idea wtf happened here. I'll keep an eye on it though.

Re: Linux Server "exit" itself?

Posted: Tue Apr 02, 2013 7:54 pm
by Jabantiz
The only other way for the server to shutdown like that is in void CatchSignal(int sig_num), did you get a log for catch signal?

Code: Select all

LogWrite(WORLD__WARNING, 0, "World", "Got signal %i", sig_num);
Looking at the code more closely, if this function was called the server will shut down, but you won't always get a log. If this happens again will have to look into why this function gets called.

Re: Linux Server "exit" itself?

Posted: Tue Apr 02, 2013 8:20 pm
by John Adams
No, what you see up there is all there was. Foof logging off, and the server executing an "exit".

There must have been a catch though, if the server had exited cleanly, the "persist_world" script would have restarted it as a crash, and there was no crashlog... so it exited, but hung. If it happens again, I'll put the Dev server in gdb and try to catch it.