secubox-openwrt/package/secubox/secubox-vortex-dns/files/etc/init.d/vortex-dns
CyberMind-FR 223abb1114 feat(vortex-dns): Complete meshed subdomain delegation system
- Add init.d script for daemon mode with procd integration
- Update Makefile to install init script
- Add packages to bonus feed (secubox-vortex-dns, luci-app-vortex-dns)
- Update tracking files with completion status

Features:
- Master/slave hierarchical DNS delegation
- Wildcard domain management (*.domain)
- First Peek auto-registration of services
- Gossip-based exposure config sync via secubox-p2p
- Submastering for nested hierarchies
- LuCI dashboard with mode detection and action buttons

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 13:23:18 +01:00

35 lines
593 B
Bash

#!/bin/sh /etc/rc.common
# SecuBox Vortex DNS Daemon
# Meshed multi-dynamic subdomain delegation
START=95
STOP=10
USE_PROCD=1
PROG="/usr/sbin/vortexctl"
start_service() {
local enabled
config_load vortex-dns
config_get enabled main enabled 0
[ "$enabled" = "1" ] || return 0
procd_open_instance
procd_set_param command "$PROG" daemon
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param pidfile /var/run/vortex-dns.pid
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger "vortex-dns"
}
reload_service() {
stop
start
}