Server side request

BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
<div class="IPBDescription">(error free shutdown?)</div>Hey,

I've a schedule running to kill the server and restart it after doing an update, this happens every night .. or should
I dont get to check the server often.. but when I do, its not a happy picture

Killing the scheduled job occasionally results in an error window from Server.exe

The Instruction at "0x1053caa9" referenced memory at "0x0000002c". The memory could not be "read"
Click on OK to terminate the program

Problem is, this messes up automation for keeping an updated server running automatically.. for me anyhow ;)
Server.exe gets locked, the update doesnt succeed and server.exe cant re-run

Is there some hook can be called to shutdown via another command prompt or a way to set server.exe to shutdown error free either from a startup parameter (ie. have a startup parameter to only run the server for 23.5 hours) or just repress any errors?

Thanks,
Bal

Comments

  • McGlaspieMcGlaspie www.team156.com Join Date: 2010-07-26 Member: 73044Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Onos, WC 2013 - Gold, Subnautica Playtester
    When the server crashes it typically doesn't use any CPU time, but keeps the allocated memory. You would need two CPU time sample (say, 500-100ms apart) to determine if the CPU is being used at all. If not, it crashed so you can just kill the process.
  • MadMakzMadMakz Join Date: 2010-12-22 Member: 75850Members
    maybe the "kill" command from gnuwin does the trick aswell
  • SN.WolfSN.Wolf Join Date: 2010-03-29 Member: 71115Members
    I think he is speaking of a restarter program. I have my OS set to auto kill the process if it encounters an error but, ...it won't kill the process if it is a memory error. It would be nice if someone could give some insight on how to do this. I think the problem is that a memory error doesn't tell the OS what process caused it so it doesn't know what process to kill. resulting in a hang and the auto restarter thinks all is fine and dandy as it still see's the process currently running so does not issue a re-launch.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    Hmmz, I've been contemplating adding a controller (read: launch-platform executable) to the Overmind-mod that would allow for what you're describing. In fact, I wanted to hook it up to the ovrmind-DLL itself, allowing for server-restarts via an ingame-command\Web-admin\RCon, restarts when the game-loop is no longer functioning (in the case of any kind of problem, memory or otherwise) and even a restart when the tickrate drops below a certain level. I'll see if I can cook something up.
  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    <a href="http://www.zhacks.com/2010/04/10/disable-application-error-memory-could-not-be-read-popup/" target="_blank">http://www.zhacks.com/2010/04/10/disable-a...-be-read-popup/</a>
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    edited April 2011
    <!--quoteo(post=1841071:date=Apr 15 2011, 04:56 PM:name=devicenull)--><div class='quotetop'>QUOTE (devicenull @ Apr 15 2011, 04:56 PM) <a href="index.php?act=findpost&pid=1841071"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><a href="http://www.zhacks.com/2010/04/10/disable-application-error-memory-could-not-be-read-popup/" target="_blank">http://www.zhacks.com/2010/04/10/disable-a...-be-read-popup/</a><!--QuoteEnd--></div><!--QuoteEEnd-->

    devicenull .. I love you :)

    This is perfect :) Simplest solution for me, lets me just run a task for 23.5 hours, run a server update and start the service again :)
Sign In or Register to comment.