wurstmineberg / systemd-minecraft

A systemd service file for one or more vanilla Minecraft servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A systemd service file for one or more vanilla Minecraft servers

License:MIT License


Languages

Language:Python 100.0%