Author Topic: nwnserver restart via batch file on Win2008 R2  (Read 505 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
nwnserver restart via batch file on Win2008 R2
« on: June 27, 2012, 06:46:00 pm »


                I don't know a better location to pose this question, hopefully here is fine.

I'll be running my nwn server on a windows 2008 r2 server. I've created a batch file to start and stop nwnserver. My question is, what issues can I expect to run into by hard shutting off the server? Or maybe somebody knows another way to shutdown the nwnserver via a batch file?

To shutdown, I'm using:
taskkill /f /im nwserver.exe

Thanks in advance for the advice.
               
               

               
            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
nwnserver restart via batch file on Win2008 R2
« Reply #1 on: June 30, 2012, 04:40:18 am »


               We use a freeware program that enables fully customizable reboot/shutdown/restart scheduling.  Then, like you, we use a batch file to start NWNx (which then starts NWServer).  We use a ~30 second delay timer on the batch file to make sure that the server's internal processes have been handled before launching NWNx.  This makes sure the module's name gets properly recognized in NWServer and doesn't come up blank.

I've never run into an issue with the restart.  It appears to run at the correct time and doesn't seem to cause server issues.