version 1.1, 2021/08/31 17:00:08 |
version 1.3, 2021/09/26 14:02:56 |
Line 2 mtctl: A minetest server control command |
|
Line 2 mtctl: A minetest server control command |
|
|
|
Based on: systemctl (linux) and rcctl (openbsd) |
Based on: systemctl (linux) and rcctl (openbsd) |
|
|
!! Usage: |
|
|
|
|
# Usage: |
|
|
|
The mtctl is using the following pattern: |
|
|
`$ mtctl <action> [worldname]` |
`$ mtctl <action> [worldname]` |
|
|
action: start|stop|restart|status|list|help |
* action: start|stop|restart|status|create|backup|list|help |
worldname: worldname to control |
* 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 -sSL https://ircforever.org/mtctl.php | $SHELL` |
|
|
|
|
|
# Setup worlds: |
|
|
|
## For existing worlds: |
|
|
Put your minetest.conf in your worlds/<yourworldname> as world.conf |
Put your minetest.conf in your worlds/<yourworldname> as world.conf |
Also specify the port in the world.conf |
Also specify the port in the world.conf |
|
|
!!! For new worlds: |
## For new worlds: |
|
|
Use $ mtctl create <worldname> |
Use $ mtctl create <worldname> |
Or use the instruction for the existing worlds |
Or use the instruction for the existing worlds |
|
|
|
|
|
# More info: |
|
|
|
* [Minetest Forums](https://forum.minetest.net/viewtopic.php?f=14&t=27093) |