Hlds As A System Service.

razblackrazblack Join Date: 2003-03-26 Member: 14896Members
<div class="IPBDescription">my contribution to the HL community.</div> I've include a script that I use to operate and monitor my HLDS server. I created it because the server crashed at one point and services were unavailable for a period of time without my knowledge. This script will monitor the HLDS thread to ensure it is still a process thread in the system, but will not ensure that the process thread is still operational.

Benefits:

1). Documented setup instructions for creating a system service in Windows 2000 using this script.
2). The service launches the HLDS application with a HIGH priority (good for maximum resource use).
3). Logs events if a critical system problem occurs while using the script or when the server was restarted.
4). Free for modification and your use :-)
5). Automatically starts the HLDS if the operating system is rebooted.

Requirements:

1). Windows 2000 machine (either Professional, Server, or Advanced Server)
2). The SRVANY and INSTSRV Windows 2000 Resource Kit tools (do not ask me for these!)
3). Windows Scripting Host version 5.6

I do not have Windows XP so I do not know if this will work on that system.

Have fun!


- RAZ

Comments

  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    Or you could use Fire-Deamon.
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    yep.. to bad Firedaemon isn't free.... SMP for HLDS is not necessary as from my understanding HLDS only has single processor support; however, I'll look at adding SMP capability to the script.

    I found a version of INSTSRV and SRVANY that may work on windows 2000... I have not tested, so I am not sure... this was available for installing the seti stuff as a service in NT. Extract and use them, it might also work if you don't have access to the windows 2000 resource kit.

    <a href='http://txaggies.no-ip.com/files/setiservice.zip' target='_blank'>http://txaggies.no-ip.com/files/setiservice.zip</a>
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    I'm using the lite version (free) and it's working pretty good for me. I don't know the difference between the full and lite but I know the light seems to work ok for me.
  • H_U_M_PH_U_M_P Join Date: 2002-11-05 Member: 7013Members
    <a href='http://serverdoc.com' target='_blank'>http://serverdoc.com</a> the best <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    Don't be bashing his thing. you guys try it out yet? It might even be better than serverdoc?


    Don't be creatures of habit <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    The thing he has done is the best since it's a real service just like any other windows service, but it needs the Resource Kit and that is NOT free, so i suggested fire-deamon which is free.
  • MonsieurEvilMonsieurEvil Join Date: 2002-01-22 Member: 4Members, Retired Developer, NS1 Playtester, Contributor
    If there is a need, I can write a quick service installer for those that are not legally able to run SRVANY. Let me know if there are enough people that want this, it's not a long coding job.
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    /me raises his hand!!!

    oh oh me me me!!

    /me looks for other ppl so he can raise thier hands too!
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    Sure, i'll use it for my windows servers <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    The version of SRVANY from the NT4 resource kit is free... you can even download it from the microsoft FTP server... they just haven't released the windows 2000 version... (which I really don't know if there is a difference or not)

    I'll try it out and post my results.
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    I tested the srvany from the link provided above for the seti - service related stuff and it worked on windows 2000... also here is a link from microsoft's ftp site that also has the srvany program. It also worked, but the instsrv program is missing. I know that they released as public the srvany stuff from NT4 so it should be ok to use.. but still, if you have access to the windows 2000 resource kit I would use the programs from that.

    ftp: ftp.microsoft.com

    dir: /bussys/winnt/winnt-public/reskit/nt40/i386

    file: srvany_x86.exe

    - RAZ
Sign In or Register to comment.