dockerfiles/minecraft/scripts/kill-server.sh

11 lines
150 B
Bash
Raw Normal View History

2015-02-04 05:17:12 +00:00
PREFIX="$1"
if [ "$PREFIX" = "" ]
then
exit -1
fi
echo "save-all" | docker attach $PREFIX-mc-server
echo "stop" | docker attach $PREFIX-mc-server