From e5ec30e564ac3a8c1d86bb39d77c6d423fb895ea Mon Sep 17 00:00:00 2001 From: fanyx Date: Sun, 26 Jun 2022 17:46:34 +0200 Subject: [PATCH] Add Xaseco as s6-rc service --- services.d/xaseco/run | 18 ++++++++++++++++++ services.d/xaseco/type | 1 + 2 files changed, 19 insertions(+) create mode 100755 services.d/xaseco/run create mode 100644 services.d/xaseco/type diff --git a/services.d/xaseco/run b/services.d/xaseco/run new file mode 100755 index 0000000..9408210 --- /dev/null +++ b/services.d/xaseco/run @@ -0,0 +1,18 @@ +#!/command/with-contenv bash + +set -e + +[[ "$(id -u)" == 0 ]] && s6-setuidgid trackmania "$0" + +cd /var/lib/xaseco + +# Parse environment to configuration files +./bin/eval_env.sh + +# Link custom configuration files +./bin/config.sh + +# Parse plugin list +./bin/plugins.sh + +exec "php" "aseco.php" diff --git a/services.d/xaseco/type b/services.d/xaseco/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/services.d/xaseco/type @@ -0,0 +1 @@ +longrun