logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
How to gracefully shutdown nwnx2 and server for updates?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
lordofworms



Joined: 23 Mar 2011
Posts: 5

PostPosted: Fri Oct 07, 2011 3:25    Post subject: How to gracefully shutdown nwnx2 and server for updates? Reply with quote

Title pretty much says it all..
whats the best practice when doing this?
currently I shut the server down then nwnx2

or should it be the otherway around?

also one more question I couldnt find an answer to.
I have my nwnserver set for Reload on Empty. does this somehow inhibit nwnx2 since its restarting kinda internally? in other words, its not really closing or shutting down then having nwnx2 restart it. Like if I hit shut down.
maybe obvious answers but I wanted to be sure (:
thanks again for this system, it is soooo great!
Back to top
View user's profile Send private message Send e-mail
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Oct 07, 2011 18:07    Post subject: Reply with quote

Well, there are pro's and con's to both.

Persistently - there wont be any difference either way.

Killing nwnx - can cause scripts to fail in game until you turn the server off. Eg - SQL Statements wont get executed, they will fail, and possibly result in TMI errors.

Killing nwserver.exe before nwnx - wont cause any problems, nwnx may however try to restart it right away, depending on where it was in the countdown.

I personally, kill nwserver.exe, then quickly kill nwnx.exe


However, if you wanted to be fancy, you could create a bat file that does

Code:

taskkill /im nwnx.exe /f
taskkill /im nwserver.exe /f



This way, you kill the processes almost instantly.
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Sat Oct 08, 2011 4:21    Post subject: Reply with quote

On linux, reset plugin. On windows, will that be an exit or a kill?
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Mon Oct 10, 2011 13:16    Post subject: Reply with quote

You could always just replace the module in the modules folder first, then just shutdown nwserver. NWNX will bring it back up with the updated module.
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Thu Oct 13, 2011 3:23    Post subject: Reply with quote

On linux, yah. On win you need to be careful about that.
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
lordofworms



Joined: 23 Mar 2011
Posts: 5

PostPosted: Thu Oct 13, 2011 21:40    Post subject: Reply with quote

yeah, well he last few times I did that (added new updated module to module folder then had nwnx2 restart it after shutting it down) I had some quirky things happen (server running nwnx2 windows xp sp3)

by quirky I mean, some players journals were wiped, some players housing was missing, and prob other things that went unnoticed.
so I only replace the module now when the server is NOT running in any way. It may be too much caution but it makes me feel better.

so I took advice of writing a BAT file for it, works like a charm.
Back to top
View user's profile Send private message Send e-mail
maddogfargo



Joined: 03 Nov 2009
Posts: 49

PostPosted: Thu Dec 01, 2011 19:02    Post subject: Reply with quote

I've had no trouble overwriting the module then performing a manual reset to load the update. Currently hosting on XP SP3.

I think a good practice is to make sure the server has been empty for a minute or so before doing that. I usually do that to ensure players are not using any database related features like storage or doing a HGLL/LETO character update/boot when the server is killed.

As a general rule, I kill the NWN server first then NWNx.
_________________
* illegible scribble *
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Dec 02, 2011 7:35    Post subject: Reply with quote

NWNX.exe is just a loader and watchdog. The actual NWNX code is injected into nwserver.exe process, so killing NWNX.exe should not affect NWNX itself.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group