reboot_warner/README.md

14 lines
597 B
Markdown
Raw Permalink Normal View History

2020-05-06 02:43:29 -07:00
This mod simply looks for a file periodically, which must be created by
`touch(1)` or something similar, and owned by the same user who is
running the Minetest server. This file simply serves as a sort of flag.
If found, the file is immediately deleted, and pop-up warnings are
issued to all players on the server that it will be rebooting soon.
This mod must be listed in secure.trusted_mods (assuming mod security is
enabled) in order for the `os.remove()` function to work.
The pop-up function is provided by kaeza's notice mod, from here:
https://github.com/kaeza/minetest-kaeza_misc