Docker-based Jellyfin media server with UCI config (port, image, media paths, GPU transcoding), procd init, jellyfinctl CLI, and LuCI frontend with status/config/logs view. Also adds Punk Exposure Engine architectural README documenting the Peek/Poke/Emancipate service exposure model and DNS provider API roadmap. CLAUDE.md updated with architectural directive. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
497 B
Bash
29 lines
497 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
START=95
|
|
STOP=10
|
|
USE_PROCD=1
|
|
|
|
SERVICE_BIN="/usr/sbin/jellyfinctl"
|
|
|
|
start_service() {
|
|
local enabled=$(uci -q get jellyfin.main.enabled)
|
|
[ "$enabled" = "1" ] || return 0
|
|
|
|
procd_open_instance
|
|
procd_set_param command "$SERVICE_BIN" service-run
|
|
procd_set_param respawn 3600 5 5
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_close_instance
|
|
}
|
|
|
|
stop_service() {
|
|
"$SERVICE_BIN" service-stop >/dev/null 2>&1
|
|
}
|
|
|
|
restart_service() {
|
|
stop_service
|
|
start_service
|
|
}
|