Recent Discussions

Start a Bedrock server in the background while retaining the ability to send commands

Unanswered
Palomino posted this in #questions
Messages8 messages
Views0 views
PalominoOP
I'd like to know how others approach this problem for Linux servers. Here's a use case example:

1. Use a terminal on a client PC to SSH into the server PC
2. Launch a Minecraft server from the terminal
3. Close the terminal on the client PC without terminating/stopping the server process
4. Open a different terminal and send the "stop" command to the Minecraft server

When looking up related behavior, I found a tool called tmux, which might work for me, but I'd like to know what others are using.
I use tmux. Others use screen, but in my experience tmux is more powerful, less buggy, and with only slightly worse syntax.

Wholeheartedly recommend tmux.
Rex
Tmux goated
At tubnet our dev infra was all tmux
PalominoOP
Sounds good, I'll try tmux, thanks
Asiatic Lion
Pretty much use Tmux or screen where you can use a keybind to disconnect and leave in background and reconnect via cmd
On the other hand you can use a docker container which is more secure, offers you the ability to do auto restart on crashing and somewhat more flexibility in running commands
PalominoOP
I ended up using tmux and some scripts to launch the server at startup and stop the server/shutdown the PC when the server has been empty for 10 minutes
Loading...