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

Wrong status code (143) when Minecraft exits after a SIGTERM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.10.2
    • None
    • Debian 8.6, default-jre-headless
    • Unconfirmed

      If you send SIGTERM to the minecraft server process it exits with a status code of 143.

      It should exit with a status code of 0 if stops gracefully.

      Steps to reproduce the issue:

      root@minecraft:/var/minecraft# java -jar /opt/minecraft/minecraft_server.1.10.2.jar nogui
      
      [ ...wait until server has started, then CTRL-Z to issue an SIGTSTP to suspend the process ]
      
      root@minecraft:/var/minecraft# kill -SIGTERM $(pgrep java)
      root@minecraft:/var/minecraft# fg
      java -jar /opt/minecraft/minecraft_server.1.10.2.jar nogui
      root@minecraft:/var/minecraft# echo $?
      143
      

            Unassigned Unassigned
            Jarrrr Jarrr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: