=================================================================== RCS file: /cvs/mtctl/README.md,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- mtctl/README.md 2021/08/31 17:00:08 1.1.1.1 +++ mtctl/README.md 2021/08/31 17:01:08 1.1.1.2 @@ -2,30 +2,42 @@ 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|list|help +* worldname: worldname to control -!! Install: +# Install: -$ curl 'https://cvsweb.planetofnix.com/cgi-bin/cvsweb/~checkout~/mtctl/installer.sh?content-type=text/plain' 2> /dev/null | $SHELL +This script is easy to install, thanks to a one-line-installer. -and follow the instructions +This installer will detect your OS and based on that info it will select which shell you have (and some other things) -!! Setup worlds: +The command itself is the following: -!!! For existing worlds: +`$ curl 'https://cvsweb.planetofnix.com/cgi-bin/cvsweb/~checkout~/mtctl/installer.sh?content-type=text/plain' 2> /dev/null | $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)