redeclipse-conf

configuration and runit scripts for RedEclipse 1.6 (template)
git clone git://deadbeef.fr/redeclipse-conf.git
Log | Files | Refs | README

commit d3f833c2b222167ae7f3527442437f1b41b8e96d
parent bf0bf259162da31d93cce1f36f44e6a76b003d1c
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sat, 18 Jul 2020 14:48:07 +0200

add generic runit run files

Diffstat:
Arunit/cfg | 2++
Arunit/log/run | 5+++++
Arunit/maps | 2++
Arunit/run | 8++++++++
4 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/runit/cfg b/runit/cfg @@ -0,0 +1 @@ +../cfg+ \ No newline at end of file diff --git a/runit/log/run b/runit/log/run @@ -0,0 +1,5 @@ +#!/bin/sh + +BASE_DIR="/var/log/bluenebula/$(basename $(dirname $(pwd)))" +mkdir -p "${BASE_DIR}" +exec svlogd -tt "${BASE_DIR}" diff --git a/runit/maps b/runit/maps @@ -0,0 +1 @@ +/usr/share/games/redeclipse/data/maps+ \ No newline at end of file diff --git a/runit/run b/runit/run @@ -0,0 +1,8 @@ +#!/bin/sh + +set -xe +exec 2>&1 + +NAME="$(basename $(pwd))" + +exec chpst -b "$NAME" /usr/games/redeclipse-server -h$(pwd)/cfg