Sfoglia il codice sorgente

Also catch INT (That's docker run -it ^C).

Steve Thielemann 7 anni fa
parent
commit
3223b9ddd9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      mc-java/launch.sh

+ 1 - 1
mc-java/launch.sh

@@ -76,7 +76,7 @@ save_shutdown() {
 }
 
 # Ok, trap TERM
-trap save_shutdown TERM
+trap save_shutdown TERM INT
 echo "Waiting for Minecraft ($MC_PID)..."
 wait $MC_PID