Thread: [ANY REVISION] Server Automatic Restarter and Crash Detector

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 [ANY REVISION] Server Automatic Restarter and Crash Detector 
    Fission
    Kidoncoke's Avatar
    Join Date
    Nov 2013
    Posts
    80
    Thanks given
    16
    Thanks received
    5
    Rep Power
    12
    Hey guys, I don't know if this has been released before, but as far as I know the last working one was like for 317 or something, this works for all revisions and is a bat file.

    THIS ONLY WORKS FOR SERVERS WITH JAVA CONTROL PANELS!

    First off, create a notepad file, and open it. THIS FILE MUST BE IN THE SAME FILE AS THE BAT FILE USED TO RUN YOUR SERVER!


    Next, you will need to put this inside of it :
    Code:
    @echo off
    REM created by Kidoncoke
    title Server Automated Restarter and Crash Detector
    :start
    set time=14400
    ping 127.0.0.1 -n 2 > NUL
    start run.bat
    :loop
    cls
    IF %time% GTR 0 (
    set /a time=%time% - 1
    set /a min=%time%/60
    echo Next Restart In %time% Seconds or %min% Minutes.
    ping 127.0.0.1 -n 2 > NUL
    tasklist /FI "IMAGENAME eq java.exe" 2>NUL | find /I /N "java.exe" >NUL
    if "%ERRORLEVEL%"=="0" goto loop
    
    goto start
    )
    taskkill /f /im java.exe
    cls
    goto start
    You will need to change the "start run.bat" to the name of the bat file that launches your server, for example, "start runserver.bat".

    By default, this will restart the server every 4 hours, and if the server goes down for any reason, it will start it back up. The 4 hour restart is so that Jad killers and such wont get pissed off.

    You will then need to go to file>save as>and then put a file name of your choice, with .bat on the end, for example, "autorestarter.bat". You will also have to change the file extension to "All" or something along those lines.

    You are now done, launch it to see if it works, and dont forget to drop a thanks.

    Reply With Quote  
     

  2. #2  
    48 0x69

    Pax M's Avatar
    Join Date
    Oct 2013
    Posts
    2,008
    Thanks given
    36
    Thanks received
    488
    Rep Power
    2270
    What the heck?
    Why not create a loop timer?
    Reply With Quote  
     

  3. #3  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    you have serious server issues if you need a crash detector
    Reply With Quote  
     

  4. Thankful users:


  5. #4  
    Registered Member Gingie's Avatar
    Join Date
    Mar 2014
    Posts
    95
    Thanks given
    2
    Thanks received
    0
    Rep Power
    19
    Well people are very nice about this...Thank you for contributing! I'm gonna use it as well as my friend is too. It can't find my run.bat for some reason even though i put it in the same file...
    If you're the smartest one in the room, then you're in the wrong room. - Anonymous
    Reply With Quote  
     

  6. #5  
    Registered Member Blackmoon's Avatar
    Join Date
    Jun 2014
    Posts
    633
    Thanks given
    47
    Thanks received
    107
    Rep Power
    42
    Nice stability.
    Reply With Quote  
     

  7. #6  
    Fission
    Kidoncoke's Avatar
    Join Date
    Nov 2013
    Posts
    80
    Thanks given
    16
    Thanks received
    5
    Rep Power
    12
    Quote Originally Posted by Stuart View Post
    you have serious server issues if you need a crash detector
    No, I mainly made it for the people without VPS access for when they need to restart the server, but you can take it any way you want I guess.

    Reply With Quote  
     

  8. #7  
    Fission
    Kidoncoke's Avatar
    Join Date
    Nov 2013
    Posts
    80
    Thanks given
    16
    Thanks received
    5
    Rep Power
    12
    Quote Originally Posted by Pax M View Post
    What the heck?
    Why not create a loop timer?
    Quote Originally Posted by Kethsi View Post
    Nice stability.
    I just quickly put this together dude if you want to improve it for yourself, go ahead, this is for those out there who might need one but dont have one.

    Reply With Quote  
     

  9. #8  
    Banned
    Join Date
    Dec 2007
    Posts
    627
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    What if the crash detector crashes?
    Reply With Quote  
     

  10. #9  
    :^)

    ___.'s Avatar
    Join Date
    Nov 2013
    Posts
    227
    Thanks given
    209
    Thanks received
    157
    Rep Power
    100
    Quote Originally Posted by Joint View Post
    What if the crash detector crashes?
    Then you obviously make a crash detector crash detector
    Reply With Quote  
     

  11. Thankful user:


  12. #10  
    Banned
    Join Date
    Dec 2007
    Posts
    627
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by _Dennis View Post
    Then you obviously make a crash detector crash detector
    Gotta make crash detectors for each crash detector.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 67
    Last Post: 11-09-2015, 09:41 PM
  2. Replies: 79
    Last Post: 05-07-2015, 05:20 PM
  3. Replies: 5
    Last Post: 12-07-2013, 01:56 PM
  4. any revision, KBD and gwds bosses... rs2hd..
    By Dynamite in forum Snippets
    Replies: 5
    Last Post: 12-24-2009, 07:00 AM
  5. Replies: 20
    Last Post: 01-27-2009, 07:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •