I'm facing the following problem:
A Minecraft Forge Modded Server 1.15.2 is running on my Debian 10 VM that is running OpenJDK JAVA 1.8.0_275-8u275-b01-1-b01. Due to the instability of the Modpack, the server sometimes crashes.
I've tried a solution from Stackoverflow: https://stackoverflow.com/questions/62143022/how-do-i-automatically-restart-a-minecraft-spigot-server-in-the-event-of-a-crash but unfortunately this doesn't work for me.
The problem I'm facing is, that if the Minecraft server gets stopped or crashes, the server is stopped but the JVM is still running. Resulting in not getting an exit code from the process... Currently the server is getting started as shown in the link above. Even when I'm on my Windows machine, I get the same behavior. Server stops, but JVM keeps running. CMD and Powershell.
Process Explorer on Windows 10
I couldn't find anything helpful so far.
Thanks ahead, DaNeubi