Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-17244

Server doesn't always save world on SIGTERM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.1, Minecraft 1.7.2
    • debian linux, java version 1.7. I have tested with both openjdk and oracle.
    • Unconfirmed

      Sending SIGTERM to minecraft server doesn't always properly shutdown.

      Sometimes when I send SIGTERM it appears to shutdown properly like so.

      2013-06-04 00:37:53 [INFO] Closing listening thread
      2013-06-04 00:37:53 [INFO] Saving players
      2013-06-04 00:37:53 [INFO] Saving worlds
      2013-06-04 00:37:53 [INFO] Saving chunks for level 'world'/Overworld

      Other times I only see

      java.net.SocketException: Socket closed
      at java.net.PlainSocketImpl.socketAccept(Native Method)
      at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
      at java.net.ServerSocket.implAccept(ServerSocket.java:522)
      at java.net.ServerSocket.accept(ServerSocket.java:490)
      at if.run(SourceFile:61)

      So I am unaware if the world was properly saved in these cases.

      It would also be nice if other common signals were supported, for example HUP and SIGUSR2.

            Unassigned Unassigned
            gregf Greg Fitzgerald
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: