Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lazerbeak12345/minetest-server-s6

An Artix s6 init script for running a Minetest server
https://github.com/lazerbeak12345/minetest-server-s6

artix artix-linux minetest minetest-server s6 s6-init s6-rc

Last synced: 14 days ago
JSON representation

An Artix s6 init script for running a Minetest server

Awesome Lists containing this project

README

        

# Artix s6 init Minetest Server setup

As of this time of writing, there isn't currently a minetest-server-s6 package in Artix's package repos.

This repo will get you started in the meantime.

## Install

1. Files prepended by `minetest-` in their path must go in `/etc/s6/adminsv/` (ex `/etc/s6/adminsv/minetest-log/run`).
2. The `minetest-env.conf` file must be renamed and moved to `/etc/s6/config/minetest.conf`
3. Edit that file so `MINETEST_GAMEID` is set to a minetest game found in `/var/lib/minetest/.minetest/games`
4. Mark both `run` files and `/etc/s6/adminsv/minetest-srv/finish` as executible.
5. Make a simlink inside `/etc/s6/adminsv/minetest-srv/` called `Working Dir` (with a space) pointing to `/var/lib/minetest/.minetest`
6. Make an empty directory `/etc/s6/adminsv/minetest-srv/event/`
7. Add the minetest service group to default so it runs on boot
8. reload the s6 database

You should now be able to start or stop `minetest`, or even reboot.

## Postgresql

To use postgresql the service must be installed, so be sure that `postgresql-s6` (or whatever it's called) is present on your system.

I won't tell you how to set up postgresql with minetest, but to ensure it starts before `minetest-srv` do this:

1. `mkdir /etc/s6/adminsv/minetest-srv/dependencies.d`
2. `touch /etc/s6/adminsv/minetest-srv/dependencies.d/postgresql`