Thread: Server Automated Re-starter - beta

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Server Automated Re-starter - beta 
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Server Automated Re-starter - beta

    Features:
    - Edit time.txt in the directory SARfiles to edit the time management settings.
    - Faster and displays errors.

    About:
    This nifty piece of software can be used on servers to automatically restart and run your server within specified time periods.

    Setting Up:
    - Copy the following code into notepad.
    Code:
    ::Copyright © MMVIII all rights reserved 2008
           @echo off
    	   Title Server Automated Restarter - Time Management
    		   :SARfiles Creator
    				  If exist SARfiles (
                      goto CalcTime
    				  ) else (
    				  md SARfiles
    				  echo 1800>SARfiles\time.txt
    				  )
    	       :CalcTime
    		   If exist SARfiles\time.txt (
    		   set /p time=<SARfiles\time.txt
    		   ) else (
    		   goto Error 2
    		   )
               :start
    				  ::run.bat check and initialization
    				  If exist run.bat (
                      start run.bat
    				  ) else (
                      goto Error 1
    				  )
               :loop
                      cls
                      IF %time% GTR 0 (
                       set /a time=%time% - 1
                        set /a min=%time%/60
                         echo Next Restart In %time% Seconds.
                        echo   %time% Seconds is %min% Minutes.
    					title %min% Minutes
                       ping 127.0.0.1 -n 2 > NUL
                      goto loop
                      ) 
               taskkill /f /im java.exe
    		   echo Waiting 3 seconds for computer delay consideration...
    		   ping 127.0.0.1 -n 2 > NUL
    		   ping 127.0.0.1 -n 2 > NUL
    		   ping 127.0.0.1 -n 2 > NUL
              cls
             goto CalcTime
    		 
    		 
    		 
    		        :Error 1
    				       cls
    		   		       echo Error: Java starter could not be found.
    				       echo Please rename your java starter to run.bat and then restart this program.
    				       pause >nul
    					   exit
    		        :Error 2
    				       cls
    					   echo Error: time.txt could not be found.
    				       echo Please create a file named time.txt and within it place the desired restart time.
    				       pause >nul
    					   exit
    - Save the file as SAR.bat in the same directory as your run.bat
    - Open your run.bat and if it contains "pause" delete that. (Without the "")
    - Open your run.bat and type "exit" as your last line. (Without the "")
    - Finally double click the file to run it.
    - Go into the folder SARfiles and find time.txt, open it and replace the number with the time between restarts (in seconds). It is set to 30 minutes at the moment as 1800 seconds is 30 minutes.

    Virus Scan:

    Due to a slight worry in the .exe file i have posted the code instead. Sorry for any inconvenience. :tu:

    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Nice job, I won't download
    cuz i know this will work fine
    Maybe if you're going to make a better release
    you could add some extra features, like memory usage and players etc
    (or just make it like a server control panel )
    Reply With Quote  
     

  3. #3  
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Yeh, I will work on that soon, and thank you.

    Reply With Quote  
     

  4. #4  
    Registered Member
    OldMercenary's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    315
    Thanks given
    1
    Thanks received
    4
    Rep Power
    78
    We havn't really needed restarters for about 5 months or so now... unless the server sucks so bad it needs to be reset still but most servers around now don't need restarters.
    OldMercenary
    Reply With Quote  
     

  5. #5  
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Visit: http://www.rune-server.org/showthread.php?t=89091
    And
    about:
    This nifty piece of software can be used on servers to automatically restart and run your server within specified time periods.

    And next time stfu.

    Reply With Quote  
     

  6. #6  
    DONATARR

    Ryequis's Avatar
    Join Date
    Sep 2008
    Age
    31
    Posts
    505
    Thanks given
    8
    Thanks received
    4
    Rep Power
    102
    Quote Originally Posted by k0nv1kt3d View Post
    We havn't really needed restarters for about 5 months or so now... unless the server sucks so bad it needs to be reset still but most servers around now don't need restarters.
    Actually, all servers need a re-starter no server is perfect and without them how would you reset lol? anyway nice job glitch
    Reply With Quote  
     

  7. #7  
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Quote Originally Posted by Ryequis View Post
    Actually, all servers need a re-starter no server is perfect and without them how would you reset lol? anyway nice job glitch
    Thanks, and your dead right.

    Reply With Quote  
     

  8. #8  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Quote Originally Posted by Ryequis View Post
    Actually, all servers need a re-starter no server is perfect and without them how would you reset lol? anyway nice job glitch
    Not a decent one. Like RS2D.
    .
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Quote Originally Posted by Graham View Post
    Not a decent one. Like RS2D.
    RS2D crashes too because of glitches/bugs
    Reply With Quote  
     

  10. #10  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Quote Originally Posted by Jonas++ View Post
    RS2D crashes too because of glitches/bugs
    Well RS2Dbase does have some issues (due to Jim letting anyone in), but the bog standard RS2D has no problems I know of (apart from a small problem with the login procedure but that is easy to fix).
    .
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •