0 Members and 1 Guest are viewing this topic.
If you restart the server or start a second copy, the PID will change...
Quote from: EnEsCe on November 09, 2007, 10:12:42 pmIf you restart the server or start a second copy, the PID will change...I've had the problem that the original poster is talking about too. I've talked to chris and maybe you about this. If you stop/start the server, a significant portion of the time soldatserver.pid doesn't come back. I don't know whether it has to happen in rapid succession or not.I suspect that the shutting down server might somehow be delayed in deleting the pid file, so it deletes the one created by the new server instance? Maybe put a check in the server to only delete the PID file on shutdown if it actually contains the PID of the server that is shutting down?
Quote from: EnEsCe on November 09, 2007, 10:12:42 pmIf you restart the server or start a second copy, the PID will change...The sleep that i added correct my problems for the bash script when u do "./serverscript restart"About the second problem that i was talking about, when u have a server started and try to start it again doing "./soldatserver -d", it will not shutdown the process and the old pid is still running (there is no "second copy", which is good). I checked carefully and the pid isn't changed (ps -x) so the old process wasn t terminated and a new process wasn t created. BUT ./logs/soldatprocess.pid got erased by that manipulation even though the server is still running with its first (and only) pid. That 's not a big trouble, i changed the bashscript a bit so that when u do "serverscript start" it will not work if a server is allready started (as it is on the soldat release now, it will still try to start a new server instance and thus erase the soldatprocess.pid file.BTW this is not really important but can matter when u are doing some status checking on several servers, etc.