Add Xaseco as s6-rc service
This commit is contained in:
parent
ffaeb8a8dc
commit
e5ec30e564
2 changed files with 19 additions and 0 deletions
18
services.d/xaseco/run
Executable file
18
services.d/xaseco/run
Executable file
|
@ -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"
|
1
services.d/xaseco/type
Normal file
1
services.d/xaseco/type
Normal file
|
@ -0,0 +1 @@
|
|||
longrun
|
Loading…
Add table
Reference in a new issue