This is a System V init script for Minecraft servers, with some Wurstmineberg-specific extras.
This is version 2.19.6 (semver) of the init script. The versioned API includes the usage pattern, as found in the docstring of minecraft.py, as well as all documented functions defined in minecraft.py.
- a System V-style init system
- Python 3.2
- The current version of the Minecraft server, available from here or using the
service minecraft updatecommand. - docopt
- lazyjson 1.0 (for whitelist management)
- loops 1.1 (for server start)
- more-itertools 2.1
- requests 2.1 (for updating)
If your system has service, you can move minecraft.py to /etc/init.d/minecraft. You can then start, stop, or restart the Minecraft server with service minecraft start etc.
To make this work for another server, you may have to modify the paths and other things in the config file.