Skip to content

wurstmineberg/systemd-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a systemd init script for one or more Notchian (vanilla) Minecraft servers, with some Wurstmineberg-specific extras.

This is version 4.0.6 (semver) of the init script. The versioned API includes a CLI, as found in the docstring of minecraft/__init__.py, as well as a Python API including all documented functions defined in that file.

Requirements

Configuration

  1. Clone the repository somewhere on your system.
  2. Create a symlink to the minecraft directory in your Python 3 module search path or add the repository to the module search path.
  3. Optionally, create a symlink to minecraft/__init__.py called minecraft in your PATH. This will allow you to use commands like minecraft update.
  4. To immediately start the Minecraft server, systemctl start minecraft. To automatically start the Minecraft server with the system, systemctl enable minecraft.

To make this work for another server, you may have to modify the paths and other things in the config file.