Learn how to set up stable Minecraft Bedrock server on Linux and prevent disconnections when closing your SSH terminal. This step-by-step tutorial covers both setting up the server and configuring it with either "screen" or "supervisorctl" for uninterrupted gameplay. Get your Minecraft Bedrock server running smoothly on Linux
Content of /etc/supervisor/conf.d/minecraft-bedrock.conf below:
[program:minecraft-bedrock]
command=/home/debian/minecraft-bedrock/bedrock_server
environment=LD_LIBRARY_PATH=/home/debian/minecraft-bedrock
directory=/home/debian/minecraft-bedrock/
user=debian
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/minecraft-bedrock.out.log