Easy Way To Restart Server?

FlayraFlayra Game Director, Unknown Worlds EntertainmentSan Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
There must be an easy way to restart the server when it crashes, either something built into hlds or a utility that everyone uses? Any suggestions?

Comments

  • fladnagfladnag Join Date: 2002-11-03 Member: 6589Members
    The Linux version comes with a script to do that: <b>hlds_run</b>
    But I'm not sure if the windows version has such a thing as well.
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    I know the linux server auto restarts, unless u use the -norestart switch in its start line. I would assume windows is the same. For linux, you can iether use a small bash script todo it. Or something like halfd etc.(www.halfd.org) But hlds should restart itself.
  • fladnagfladnag Join Date: 2002-11-03 Member: 6589Members
    No the linux version doesn't auto restart itself, it's the hlds_run script, which happens to be a shell script. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • death1death1 Join Date: 2002-11-16 Member: 8920Members
    the hlds_run script starts the same time the hlds_l server is begun, unless its specificed -norestart

    there's no easy/rcon/hl way to start up a server remotely if it crashes and stays down

    -d$
  • tlarmontlarmon Join Date: 2002-11-15 Member: 8701Members
    <!--QuoteBegin--Flayra+Jan 24 2003, 03:17 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Flayra @ Jan 24 2003, 03:17 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->There must be an easy way to restart the server when it crashes, either something built into hlds or a utility that everyone uses? Any suggestions?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I use Fire Daemon and it rocks. I'm an ex-ServerDoc user. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    These are for Win32 btw.
  • ArkaineArkaine Join Date: 2002-07-12 Member: 914Members
    edited January 2003
    If you're talking about doing this for Linux, this was discussed in Vadakill's Newbie Guide...which happens to be a sticky on your forums. hehe <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    <a href='http://www.unknownworlds.com/forums/index.php?act=ST&f=8&t=10309' target='_blank'>http://www.unknownworlds.com/forums/in...=ST&f=8&t=10309</a>

    Heh, Idunno about Winbloze... <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    edited January 2003
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Here's my batch file for my server:
    ---
    @echo off
    e:
    cd \sierra\half-life\
    start /high /wait E:\SIERRA\Half-Life\hlds.exe -game ns -nipx -nojoy +map ns_eclipse -maxplayers 16
    cd \
    Natselsvr.bat
    ---

    Keep in mind that this is running on a Win2K box, which is why I have the "start /high /wait" params in before the hlds command.

    This also means that if the server crashes out for some reason...it'll auto restart. =)

    -Brendan
    aka [OldF]SandTyger<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
  • GelantiousGelantious Join Date: 2002-11-01 Member: 2576Members, Constellation
    <!--QuoteBegin--tlarmon+Jan 24 2003, 09:36 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (tlarmon @ Jan 24 2003, 09:36 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--Flayra+Jan 24 2003, 03:17 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Flayra @ Jan 24 2003, 03:17 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->There must be an easy way to restart the server when it crashes, either something built into hlds or a utility that everyone uses?  Any suggestions?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I use Fire Daemon and it rocks. I'm an ex-ServerDoc user. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    These are for Win32 btw.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Same here.

    Fire Daemon is really a great program, too bad you can only have one service in the lite version.
  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    I still use the older version, .09c.

    Great program!

    Yeah, it is very annoying when the server crashes and decided not to come back up <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    <!--QuoteBegin--cracker jackmac+Jan 24 2003, 05:27 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Jan 24 2003, 05:27 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Here's my batch file for my server:
    ---
    @echo off
    e:
    cd \sierra\half-life\
    start /high /wait E:\SIERRA\Half-Life\hlds.exe -game ns -nipx -nojoy +map ns_eclipse -maxplayers 16
    cd \
    Natselsvr.bat
    ---

    Keep in mind that this is running on a Win2K box, which is why I have the "start /high /wait" params in before the hlds command.

    This also means that if the server crashes out for some reason...it'll auto restart. =)

    -Brendan
    aka [OldF]SandTyger<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    The dedicated server doesn't have any joystick code. -nojoy is for the client.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    lol i didn't even read it, i just posted his script for him.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    I use ServerDoc. Great program.
  • NeroNero Join Date: 2002-12-20 Member: 11236Members
    edited January 2003
    WIN users:
    create ns.bat and edit with your favorite text editor
    edit:
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    :start
    c:\path-to-hld\hlds.exe -game ns "blablabla" <- put your stuffs here
    goto start
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    save and close your favorite text editor
    Congratulations, you have successfuly built a great restart program ^_^
  • j0ej0e Join Date: 2002-11-01 Member: 2840Banned
    edited January 2003
    might as well add my own 2 cents

    win32

    serverdoc good = small footprint, visible console, all necessary options i can think of are available
    serverdoc bad = requires $ registration, can't run as service

    gamehost good = tons of features, remote client, runs as a service
    gamehost bad = $40, if you like to look at the console you are SOL

    firedaemon good = clean, simple, can be used for anything
    firedamon bad = not game oriented, lacks some features, nost very easy for newbies

    remote-x = VERY feature rich, good for server-rental sites that have multiple people checking on servers. the most hardcore HL server tool

    linux

    halfd = TEH WIN! kicks **** for running linux servers (can be used on windows too). the second most hardcore tool
    hlds_run = simple, built-in, bulletproof
    screen = familiar, a few more options than hlds_run

    [edit] here's link and text from the manufacturer's sites

    <a href='http://serverdoc.winsoft.net.au/' target='_blank'>http://serverdoc.winsoft.net.au/</a>
    Serverdoc restarts most programs when they crash. From ftp and game servers to stockmarket programs. Serverdoc uses very little resources so your server performance is not effected.

    <a href='http://www.xoanan.com/gamehost/default.htm' target='_blank'>http://www.xoanan.com/gamehost/default.htm</a>
    GameHost is the ultimate tool for running network game servers. It allows you to easily setup, run, and manage most of your favorite network games, including Quake, QuakeWorld, Quake II, Quake III Arena, Hexen II, Half-Life, Sin, Starsiege TRIBES, Unreal Tournament and Return to Castle Wolfenstein.

    <a href='http://www.firedaemon.com/' target='_blank'>http://www.firedaemon.com/</a>
    FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python) as a Windows NT/2K/XP service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments and CPU binding and scheduling plus monitoring and logging to the NT/2K/XP event log and on-disk log files.
    FireDaemon is supplied in two forms: a free Lite version (with limited functionality for non-commercial use) and a fully functional Pro version.

    <a href='http://www.halfd.org/' target='_blank'>http://www.halfd.org/</a>
    halfd - Advanced Server Management for Linux Half Life Servers!
    (i've heard you can use it on windows though)

    <a href='http://www.planetfortress.com/remote-x/' target='_blank'>http://www.planetfortress.com/remote-x/</a>
    Remote-X has many features such as a user levels system, encrypted security on data being sent to and from the Remote-X Client, advanced player options, built in scripting engine and plugin DLL support for customizability, detailed live information on the server broadcasted to all connected clients in real time, as frequent as once per second. Simultaneous connection of up to 50 admins on one server, ability to run the server application as an NT service and much more! This is definitely a tool for the hardcore HL server administrator.
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    For your amusement:

    My setup:

    Athlon 1.4, 512 DDR266, 100MBit (my gateway) HLDS and VNC

    If it goes down, or I need to access the machine from elsewhere, I can tightVNC to it to bring it back up. Or alternatively, if I want to really p1$$ everyone on the server off, I can tightVNC to it during a game and hog all the CPU time

    Roobubba's Glorious NS 1.03 *Updated*
    163.1.180.217:27016 (UK)
  • Dead_DragonDead_Dragon Join Date: 2002-12-17 Member: 10972Members
    edited January 2003
    Roobubba's server is hardly the bastion of stability is it though mate? <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    It's been sorted now, and hasn't crashed for 3 days <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' valign='absmiddle' alt='wink.gif'><!--endemo-->
    I found the issue, such a n00b, but you'll find it's MUCH more stable now, plus the admins no longer get kicked on map change lol <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    I have to say, I may be new to server adminning, but I'm quite proud of the setup I have there now, plus my network has been upgraded to 100Mbit from 10Mbit, which is also nice <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    Roob's glorious NS 1.03 *Updated*
    163.1.180.217:27016
  • Dead_DragonDead_Dragon Join Date: 2002-12-17 Member: 10972Members
    w00t and so forth.
  • SandTygerSandTyger Join Date: 2002-11-02 Member: 3868Members
    Because I run my server in Win2K in High priority mode, there isn't a big lag hit when I log into VNC, it's VNC that's painfully slow. =)

    Thanks for the info on the -nojoy thing...

    Now...if I could only fix my map rotation problem. <grumble>
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    <!--QuoteBegin--Roobubba+Jan 25 2003, 07:07 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Roobubba @ Jan 25 2003, 07:07 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->plus the admins no longer get kicked on map change lol <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I've suddenly started having this problem recently. They get kicked with a "This name is reserved on this server" thing like they don't have their setinfo line on (which they must have had to connect in the first place). I just re-exec my autoexec.cfg file and retry, but its annoying. It also does it randomly, and not very often, but when it happens it annoys the crap out of me.
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--GoleX+Jan 25 2003, 02:58 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (GoleX @ Jan 25 2003, 02:58 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--Roobubba+Jan 25 2003, 07:07 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Roobubba @ Jan 25 2003, 07:07 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->plus the admins no longer get kicked on map change lol <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I've suddenly started having this problem recently. They get kicked with a "This name is reserved on this server" thing like they don't have their setinfo line on (which they must have had to connect in the first place). I just re-exec my autoexec.cfg file and retry, but its annoying. It also does it randomly, and not very often, but when it happens it annoys the crap out of me.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Check out the adminmod FAQ. Entry is titled " Every 30 mins or so EVERYONE in the users.ini gets kicked from the server!"
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    <!--QuoteBegin--verbose+Jan 25 2003, 04:42 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (verbose @ Jan 25 2003, 04:42 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--GoleX+Jan 25 2003, 02:58 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (GoleX @ Jan 25 2003, 02:58 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--Roobubba+Jan 25 2003, 07:07 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Roobubba @ Jan 25 2003, 07:07 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->plus the admins no longer get kicked on map change lol <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I've suddenly started having this problem recently. They get kicked with a "This name is reserved on this server" thing like they don't have their setinfo line on (which they must have had to connect in the first place). I just re-exec my autoexec.cfg file and retry, but its annoying. It also does it randomly, and not very often, but when it happens it annoys the crap out of me.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Check out the adminmod FAQ. Entry is titled " Every 30 mins or so EVERYONE in the users.ini gets kicked from the server!"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I <3 Verbose
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    Thanks guys. I knew about it under linux (yep, I read the FAQ) but I needed it for win32. Batch-file city for me. :) K.I.S.S.
  • MisfireMisfire Join Date: 2002-11-03 Member: 5764Members
    i use serverdoc too.
Sign In or Register to comment.