Infinidoge / nix-minecraft

An attempt to better support Minecraft-related content for the Nix ecosystem
MIT License
172 stars 18 forks source link

Use `/reload` instead of restarting service when changing some things in configuration #71

Closed Alexnortung closed 2 weeks ago

Alexnortung commented 2 weeks ago

When changing whitelist or serverProperties, it is not always nice that the entire service restarts, since it disconnects all players. If you are only changing whitelist for example, the server could just be reloaded with the /reload command.

I am not quite sure how this would be implemented, but I know that the restartIfChanged option exists which could be set to false. I guess adding a ExecReload command to the service would be the first step to make this work.

Alexnortung commented 2 weeks ago

I don't think /reload works like this anyway.