Start multiple servers with 1 BASH ?

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

markd

plox.host
Supreme
Feedback score
56
Posts
644
Reactions
394
Resources
0
I can make a small bash script for a vouch.
 

0rangeFox

The Fox Member
Supreme
Feedback score
17
Posts
411
Reactions
124
Resources
0
Code:
echo "Name Network | Script start multiples servers"
echo "The script will run in 5 seconds."
echo "Press Ctrl + C to cancel the script."
sleep 5
echo "Starting BungeeCord Proxy..."
screen -d -m -S Bungee bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Starting server Lobby..."
screen -d -m -S Lobby bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Starting server Practice..."
screen -d -m -S Practice bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Name Network | All servers started."
Here go.

Ah i forget, and on script "Start_Server_Script.sh", you need have this code:
Code:
java -Xmx1024m -Xms1024m -jar spigot.jar
 
Last edited:

HLLRHLLR

Banned
Feedback score
-4
Posts
389
Reactions
90
Resources
0
Code:
echo "Name Network | Script start multiples servers"
echo "The script will run in 5 seconds."
echo "Press Ctrl + C to cancel the script."
sleep 5
echo "Starting BungeeCord Proxy..."
screen -d -m -S Bungee bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Starting server Lobby..."
screen -d -m -S Lobby bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Starting server Practice..."
screen -d -m -S Practice bash -c 'cd /directory/ && ./Start_Server_Script.sh'
sleep 1
echo "Name Network | All servers started."

Here go.[DOUBLEPOST=1550412852][/DOUBLEPOST]
Ah i forget, and on script "Start_Server_Script.sh", you need have this code:
Code:
java -Xmx1024m -Xms1024m -jar spigot.jar
thanks a lot <3
 
Banned forever. Reason: Creating Multiple Accounts (Krejcomut)
Status
This thread has been locked.
Top