-
I run a 1.19 based server with the autopause feature enabled. To my understanding and testing, I can't connect to the server console via rcon. My situation is I am mining monero on the same system that I'm hosting a server. I want to be able to trigger my mining to stop when any client joins the server, and start up again once all clients leave. The only idea I can come up with is a script that checks every 5 or 10 minutes the most recent log from This seems very inefficient to me as this will have to run every so often, and I wonder with my current setup if there is a better way to ultimately trigger this, instead of consistently checking. Please let me know if you have any ideas or have done something similar. It's much appreciated! 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I actually like your idea of the periodic query and would suggest trying out a semi-builtin approach like this snippet used by auto-pause: docker-minecraft-server/files/auto/autopause-fcns.sh Lines 23 to 33 in 0d5e44a |
Beta Was this translation helpful? Give feedback.
Good question. I would suggest building a separate image to run as a sidecar where you could pull in the mc-monitor binary from https://github.com/itzg/mc-monitor/releases/latest
With that, have your entrypoint be a script of some form that runs in a loop checking the status and taking actions needed.