I have a Minecraft server that I start over ssh. I use screen so it keeps running
Spigot allows you to set a start script so that if the server stops it can start again automatically.
I currently have the following code for my spigot start command (this is inside a shell file that spigot runs)
#!/bin/sh screen -s minecraft -x ~/path/to/server/start.sh
then in my
start.sh file I have the following
#!/bin/sh java -Xmx1500m -jar server.jar -nogui
before I started with the restart I would ssh into the computer, start screen then run the
start.sh file. But now I need a file that will start screen and run the
How do I do this?