Skip to content

Instantly share code, notes, and snippets.

@aaomidi
Last active August 29, 2015 14:02
Show Gist options
  • Save aaomidi/b9ba5c269a4a4841298b to your computer and use it in GitHub Desktop.
Save aaomidi/b9ba5c269a4a4841298b to your computer and use it in GitHub Desktop.
Starts the Minecraft servers
#!/bin/bash
set -e
cd /mc/servers
for name in *; do
echo "Starting server $name" >&2
mark2 start -i
sleep 5s
done
echo "Started all the servers!" >&2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment