Archived
3
0

extract config to external files
Some checks failed
Check indentation / build (push) Has been cancelled
Continuous testing / build (push) Has been cancelled

This commit is contained in:
2025-03-12 23:08:40 +01:00
parent 975ebedace
commit 5513042b1b
10 changed files with 193 additions and 46 deletions

View File

@@ -1,10 +1,15 @@
#!/bin/sh
if [ ! -f /data/config.toml ]
then
cp /default/config.toml /data/config.toml
fi
_term() {
kill -TERM "$server_pid" 2>/dev/null
}
trap _term SIGTERM
/usr/bin/zmp24 &
/usr/bin/zmp24 /data/config.toml &
server_pid=$!
wait "$server_pid"