z4z/z4z-service.bash
2026-03-02 21:49:19 +01:00

12 lines
244 B
Bash
Executable File

#!/usr/bin/env bash
WEB_ROOT="/home/xbl/z4z"
MPV_WATCHER="/home/xbl/z4z/z4z.bash"
HTTP_PORT=8080
# Start the MPV watcher in background
"$MPV_WATCHER" &
# Start BusyBox httpd in foreground
exec busybox httpd -f -p "$HTTP_PORT" -h "$WEB_ROOT"