I wrote a simple script to launch two minecraft servers through screen. I can run it fine, but the issue is it hits the first command and runs that line fine, but it then enters the screen it creates and goes to the server without ever launching the second line. How can I force it to launch both commands?
Here is the script:
#!/bin/bash
#Launches minecraft servers
#Plugin Test Server
screen -S PluginTest java -Xms1024M -Xmx1024M -XX:MaxPermSize=128M -jar /home/kalenpw/TestWorld/spigot-1.10.jar
#Khalidor Server
screen -S Khalidor java -Xms8192M -Xmx9216M -XX:MaxPermSize=128M -jar /home/kalenpw/KhalidorServer/spigot-1.10.jar
What happens is the first PluginTest runs fine, but the second line for Khalidor never runs.