Proper way to restart server when live?
Zaggy
NullPointerExceptionThe Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
Comments
And does that kill the process? How do you then restart the server?
I imagine you could write a batch file that passes the exit command to the server console, then restarts the server. There is no in-game method to restart a server.
My server script (partial):
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Xvfb :1 &
cd ns2
DISPLAY=:1 screen -A -m -d -S ns2 wine Server.exe -console -name "NL :: 237 :: 747 zaggynl airlines" -webadmin -webdomain 747.internetuplink.com -webuser <user>-webpassword <pass> -webport <port>-map ns2_docking -ip 747.internetuplink.com -port 27015 -limit 16<!--QuoteEnd--></div><!--QuoteEEnd-->
<!--quoteo(post=2061697:date=Jan 17 2013, 01:56 AM:name=CoTTon)--><div class='quotetop'>QUOTE (CoTTon @ Jan 17 2013, 01:56 AM) <a href="index.php?act=findpost&pid=2061697"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Zaggy PM me<!--QuoteEnd--></div><!--QuoteEEnd-->
Done.
Its a bit confusing, but what you need to do is hit tab to open the server console window, click on the window, then hit tilde. At least that's how it works in windows.
Ah, I think that is where the issue is, I'm not running it in a window manager.