auto restart upon crash?

Sleepybear

Moderator
Staff member
Probably want to figure out why it's crashing in the first place, but you can create a startup script that basically goes:

Code:
echo Starting Nukkit Server
while true
java -jar nukkit-1.0-SNAPSHOT.jar
end
Depending on the server OS, the script can be bash, sh, or windows batch. You can also create a service so it starts on boot, but again that is OS dependent.
 

Geauxpher

New Member
Probably want to figure out why it's crashing in the first place, but you can create a startup script that basically goes:

Code:
echo Starting Nukkit Server
while true
java -jar nukkit-1.0-SNAPSHOT.jar
end
Depending on the server OS, the script can be bash, sh, or windows batch. You can also create a service so it starts on boot, but again that is OS dependent.
what would the sh script look like?
 
Top