Server startup script

Status
This thread has been locked.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
Okay, i have a plugin that when the server is enabled it wait 12 hours and then execute the command /stop as console, but i need to start the server again, i don't know where to put this so i put this in the plugins forum.
My startup script:
Code:
 BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
screen -S HCF java -Xmx20G -Xmx20G -jar PaperSpigot.jar
I tried by adding "source run.sh" because the name of the script is run.sh but it doesn't work. i have CentOS 7 x86, thanks in advanced!
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
So instead of using screen -S i need to use screen -r and add the line "source run.sh"?
 
Status
This thread has been locked.
Top