Created
October 24, 2017 15:49
-
-
Save SamEureka/8f361cff640bceaefb638e141c219be6 to your computer and use it in GitHub Desktop.
start script for multiple MC servers // needs ServerStart.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# echo "Starting Direwolf on port: 25566" | |
# cd /home/sam/servers/direwolf && screen -dmS direwolf ./ServerStart.sh & | |
# echo "Starting Infinity on port: 25567" | |
# cd /home/sam/servers/infinity && screen -dmS infinity ./ServerStart.sh & | |
echo "Starting SkyFactory on port: 25565" | |
cd /home/sam/servers/skyfactory && screen -dmS skyfactory ./ServerStart.sh & | |
echo "Starting FTB Beyond on port: 25568" | |
cd /home/sam/servers/beyond && screen -dmS beyooooond ./ServerStart.sh & | |
echo "Starting SkyFactory Challenges on port: 21337" | |
cd /home/sam/servers/challenges && screen -dmS challenges ./ServerStart.sh & | |
if [ ! -f started.log ]; then | |
touch started.log | |
fi | |
sleep 15 | |
date +"%FT%H%M" >> started.log | |
screen -list >> started.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment