Proper way to restart server when live?

ZaggyZaggy NullPointerExceptionThe Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
How do you restart the server when people are on it?
If you just kill the process people will be disconnected after a long timeout I think.
I could manually kick them.
Is there a kick all command?

Comments

  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    If you type 'exit' in the server console, it will immediately disconnect everyone with a 'server shutdown' popup.
  • YoungTrotskyYoungTrotsky Join Date: 2007-03-09 Member: 60307Members
    <!--quoteo(post=2061498:date=Jan 16 2013, 07:26 PM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jan 16 2013, 07:26 PM) <a href="index.php?act=findpost&pid=2061498"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you type 'exit' in the server console, it will immediately disconnect everyone with a 'server shutdown' popup.<!--QuoteEnd--></div><!--QuoteEEnd-->

    And does that kill the process? How do you then restart the server?
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2061508:date=Jan 16 2013, 11:40 AM:name=YoungTrotsky)--><div class='quotetop'>QUOTE (YoungTrotsky @ Jan 16 2013, 11:40 AM) <a href="index.php?act=findpost&pid=2061508"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->And does that kill the process? How do you then restart the server?<!--QuoteEnd--></div><!--QuoteEEnd-->
    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.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    To do a nice shutdown, I normally open the console (hit tab), and the close the cnosole (hit X). It sends the same shutdown message to all clients, and normally closes the server down. Not always, but most of the time. It always sends the messages and DC's clients though.
  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    ive always just sent an sv_say telling people the server was going down at the end of the round then watched from webadmin, once everyone goes to ready room i just used my providers start/stop button which i imagine just kills the process by process id. It probably causes everyone to timeout which isn't ideal but UWE did not put a sv_rcon in the game it seems as I only have that command via DAK Admin Kit which is currently uninstalled (was waiting for a bug fix that is there now but im too lazy to update it from git).
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    <!--quoteo(post=2061498:date=Jan 16 2013, 08:26 PM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jan 16 2013, 08:26 PM) <a href="index.php?act=findpost&pid=2061498"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you type 'exit' in the server console, it will immediately disconnect everyone with a 'server shutdown' popup.<!--QuoteEnd--></div><!--QuoteEEnd--> I'm unable to get a server console when running it with wine, even when starting with -console.

    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.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2062653:date=Jan 18 2013, 07:34 AM:name=Zaggy)--><div class='quotetop'>QUOTE (Zaggy @ Jan 18 2013, 07:34 AM) <a href="index.php?act=findpost&pid=2062653"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I'm unable to get a server console when running it with wine, even when starting with -console.<!--QuoteEnd--></div><!--QuoteEEnd-->
    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.
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    <!--quoteo(post=2062891:date=Jan 18 2013, 11:46 PM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jan 18 2013, 11:46 PM) <a href="index.php?act=findpost&pid=2062891"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->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.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Ah, I think that is where the issue is, I'm not running it in a window manager.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    I heard it also really ######s with the performance on a linux server using the -console command.
Sign In or Register to comment.