Why Nostr? What is Njump?
2024-10-19 10:45:45
in reply to

Solène :flan_hacker: on Nostr: npub1ga3uc…5pvru npub1j79ug…5uxu0 minecraft is running in a container, so I just ...

minecraft is running in a container, so I just pause / unpause that container

I'm using systemd-socket-proxyd on a systemd socket that connects to the locally listening minecraft server, so players connect to that socket, this unpause minecraft and pass the stream to minecraft

there is a systemd timer running every 5 minutes checking for the player number in minecraft using rcon-cli, if it's 0 there it pauses the container

systemd-socket-proxyd documentation: https://www.freedesktop.org/software/systemd/man/latest/systemd-socket-proxyd.html

my previous setup using NixOS that automatically start minecraft on demand, and stop it after a while

https://dataswamp.org/~solene/2022-08-20-on-demand-minecraft-with-systemd.html
Author Public Key
npub1xrj29uavkfu5nznlq43cl0y3zgc259afecy4u4kchxpm4na6rscswdww2k