Minecraft-Server-Tools/start_server.sh

9 lines
182 B
Bash

#!/bin/bash
COMMAND="echo Put server command here."
echo "Starting Server with command \"$COMMAND\" in $PWD"
$COMMAND
EXIT=$?
echo "Server stopped with exit-code $EXIT."
exit $EXIT