A Linux daemon for managing Minecraft servers
by CsokiCraft
Downloads can be found on the GitHub releases page.
Run the minecartd_install script. It downloads and installs minecartd, sets up a new user account, generates default config file and servers directory, and installs and enables a systemd service for minecartd.
In general, using the service is the preferred method. However, on systems without systemd, or when testing the software, you may opt to disable it (systemctl stop minecartd && systemctl disable minecartd) and use the command line instead (/usr/bin/minecartd or java -jar minecartd.jar).
On the server, run minecartd, either from command line or via systemd service.
Then on the client, connect to it with an appropriate tool (ex. telnet) to access the Command Interface
The config file consists of key=value pairs. Lines starting with # won't be interpreted. If the config file doesn't exist, minecartd will attempt to create it.
dir: The directory holding the servers' directories. Default:/var/lib/minecartd/serversport: The TCP port for the Command Interface. Default:40960
--cfgfile|-f <file>: use this config file instead of/etc/minecartd.conf--gen-cfg|-C: generate config and quit. Won't launch Command Interface. Can't be used with-S--stop|-S: connect to a server onlocalhostand sendSTOPto it (stops all Minecraft servers and theminecartdhost). Can't be used with-C--tmpfile|-t <file>: set the temp file's location. If this is not given, it will default to/tmp/minecartd.tmp--no-tmpfile|-T: don't create a temp file. This is not recommended.
When connection is established to the minecartd server, you'll see a welcome prompt telling the server's minecartd version. If there's no prompt, that means there's a connection failure. Check your connection as well as verify that the server is up and running.
help: Lists all commandslist: Lists all serversSTOP: Stops all servers and quitsstart <server>: Starts the Minecraft serverkill <server>: Kills the Minecraft server. Use only when the server is beyond-recoverable frozen. You may lose your world! You have been warned.cmd <server> stop: The proper way of closing the Minecraft servercmd <server> <command>: Execute a Minecraft command as an Adminlog <server> [ln]: Outputs the lastlnlines (default: 10, max: 127) of the output of the Minecraft server