1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto restart script 1.0

run.Bat

Tags:
  1. augesrob
    This is a .bat file for constant run that loops the running of the server. Or in other words restarts the server when it stops.


    Code (Text):
    color 0E
    title STARTING NUKKIT
    @echo off
    :start
    java -Xmx1024M -jar nukkit.jar -o true
    title RESTARTING NUKKIT
    goto start
    How to use:
    Copy the code above and put it in to a .bat file called run.
    Note: The nukkit jar file must be called nukkit.jar or this will not run.


    Run at Windows startup
    1) Make a shortcut of the bat and place it on desktop
    2) Hold down the Windows key, and type R
    3) Type: shell:startup
    4) Click Ok
    5) Drag the shortcut to the Windows Startup Folder
    Should look like this
    C:\Users\augesrob\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


Recent Reviews

  1. Vrysed
    Vrysed
    3/5,
    Version: 1.0
    Can you make one for Linux Debian 9?
  2. User_1
    User_1
    3/5,
    Version: 1.0
    its useful when your server crashes but it would be better if the file can be added to start up programs so the computer can have a full restart.
    1. augesrob
      Author's Response
      I added a simple how-to in the description run at windows startup.