GithubHelp home page GithubHelp logo

lazerbeak12345 / minetest-server-s6 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

An Artix s6 init script for running a Minetest server

License: MIT License

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

minetest-server-s6's Introduction

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

minetest-server-s6's People

Contributors

lazerbeak12345 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.