Auto restart script

Auto restart script 1.0

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:
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


Author
augesrob
Downloads
673
Views
2,147
First release
Last update
Rating
3.00 star(s) 2 ratings

More resources from augesrob

Latest reviews

Can you make one for Linux Debian 9?
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.
augesrob
augesrob
I added a simple how-to in the description run at windows startup.
Top