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.
- Files prepended by
minetest-
in their path must go in/etc/s6/adminsv/
(ex/etc/s6/adminsv/minetest-log/run
). - The
minetest-env.conf
file must be renamed and moved to/etc/s6/config/minetest.conf
- Edit that file so
MINETEST_GAMEID
is set to a minetest game found in/var/lib/minetest/.minetest/games
- Mark both
run
files and/etc/s6/adminsv/minetest-srv/finish
as executible. - Make a simlink inside
/etc/s6/adminsv/minetest-srv/
calledWorking Dir
(with a space) pointing to/var/lib/minetest/.minetest
- Make an empty directory
/etc/s6/adminsv/minetest-srv/event/
- Add the minetest service group to default so it runs on boot
- reload the s6 database
You should now be able to start or stop minetest
, or even reboot.
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:
mkdir /etc/s6/adminsv/minetest-srv/dependencies.d
touch /etc/s6/adminsv/minetest-srv/dependencies.d/postgresql