=================================================================== RCS file: /cvs/mtctl/README.md,v retrieving revision 1.1 retrieving revision 1.4 diff -u -p -r1.1 -r1.4 --- mtctl/README.md 2021/08/31 17:00:08 1.1 +++ mtctl/README.md 2021/10/19 10:05:56 1.4 @@ -2,30 +2,49 @@ mtctl: A minetest server control command Based on: systemctl (linux) and rcctl (openbsd) -!! Usage: +# Usage: + +The mtctl is using the following pattern: + `$ mtctl [worldname]` -action: start|stop|restart|status|list|help -worldname: worldname to control +* action: start|stop|restart|status|create|backup|list|help +* worldname: worldname to control -!! Install: +# Features: -$ curl 'https://cvsweb.planetofnix.com/cgi-bin/cvsweb/~checkout~/mtctl/installer.sh?content-type=text/plain' 2> /dev/null | $SHELL +This command has some extra features: +- Per-user config, so you can run per user your own server +- Live backup thanks to Minix: You can make backups whilst the server is running (without restart) -and follow the instructions +# Install: -!! Setup worlds: +This script is easy to install, thanks to a one-line-installer. -!!! For existing worlds: +This installer will detect your OS and based on that info it will select which shell you have (and some other things) + +The command itself is the following: + +`$ curl -sSL https://ircforever.org/mtctl.php | $SHELL` + + +# Setup worlds: + +## For existing worlds: + Put your minetest.conf in your worlds/ as world.conf Also specify the port in the world.conf -!!! For new worlds: +## For new worlds: Use $ mtctl create Or use the instruction for the existing worlds + +# More info: + +* [Minetest Forums](https://forum.minetest.net/viewtopic.php?f=14&t=27093)