I want to run the minecraft server.jar with an attached tcp socket, so I use:
socat EXEC:"java -jar server.jar nogui" TCP-LISTEN:25567,fork I can connect (and disconnect) to the server without any problems via telnet. But when I stop the server (via /stop) the server terminates (checked with ps auf, the process is definitely gone) but socat just doesn't terminate.
How can I start socat so it terminates after the EXEC-child is terminated? (I already tried using SYSTEM: instead of EXEC: but that was trying)