micro improvements

- Change the rcon client target from 0.0.0.0 to 127.0.0.1 (cleaner semantics; 0.0.0.0 is for binding, not connecting).
- Make container naming dynamic at ExecStop
This commit is contained in:
anonoe 2026-01-28 19:12:49 +01:00
parent c9c868a334
commit 9a6c513cff
Signed by: anonoe
SSH key fingerprint: SHA256:OnAs6gNQelOnDiY5tBpDYKQiuTgBvnmIdMo5P09cdqg
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ Exec=java -Xmx4G -Xms1G -jar minecraft_server.jar --nogui
SuccessExitStatus=0 143 SuccessExitStatus=0 143
TimeoutStartSec=480 TimeoutStartSec=480
TimeoutStopSec=480 TimeoutStopSec=480
ExecStop=-podman exec systemd-MMS sh /mnt/rcon/stop.sh ExecStop=-podman exec systemd-%N sh /mnt/rcon/stop.sh
[Install] [Install]
# Start by default on boot # Start by default on boot

View file

@ -1,5 +1,5 @@
[MMS] [MMS]
hostname = 0.0.0.0 hostname = 127.0.0.1
port = 25575 port = 25575
password = PUT_PASSWORD_HERE_FROM_server.properties password = PUT_PASSWORD_HERE_FROM_server.properties
minecraft = true minecraft = true