Skip to content

Instantly share code, notes, and snippets.

@SamEureka
Created October 24, 2017 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamEureka/8f361cff640bceaefb638e141c219be6 to your computer and use it in GitHub Desktop.
Save SamEureka/8f361cff640bceaefb638e141c219be6 to your computer and use it in GitHub Desktop.
start script for multiple MC servers // needs ServerStart.sh
#!/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