minecraft bedrock graceful stop

This commit is contained in:
Matthew Tran
2024-09-17 00:31:10 +00:00
parent 7f7367c74d
commit c888f10a52
4 changed files with 10 additions and 11 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ RUN apt-get install -y wget openjdk-21-jre
USER ubuntu
WORKDIR /home/ubuntu
RUN wget https://github.com/Tiiffi/mcrcon/releases/download/v0.7.2/mcrcon-0.7.2-linux-x86-64.tar.gz
RUN tar xvf mcrcon-0.7.2-linux-x86-64.tar.gz
# from https://github.com/itzg/rcon-cli
RUN wget -O rcon-cli.tar.gz https://github.com/itzg/rcon-cli/releases/download/1.6.9/rcon-cli_1.6.9_linux_amd64.tar.gz
RUN tar xvf rcon-cli.tar.gz && rm rcon-cli.tar.gz
# from https://www.minecraft.net/en-us/download/server (currently 1.21)
RUN wget https://piston-data.mojang.com/v1/objects/59353fb40c36d304f2035d51e7d6e6baa98dc05c/server.jar
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
cleanup() {
./mcrcon -p password stop
./rcon-cli --password password stop
}
trap 'cleanup' TERM