Files
DOLPHIN/prod/meta_health_daemon_bsd.rc
hjnormey 01c19662cb initial: import DOLPHIN baseline 2026-04-21 from dolphinng5_predict working tree
Includes core prod + GREEN/BLUE subsystems:
- prod/ (BLUE harness, configs, scripts, docs)
- nautilus_dolphin/ (GREEN Nautilus-native impl + dvae/ preserved)
- adaptive_exit/ (AEM engine + models/bucket_assignments.pkl)
- Observability/ (EsoF advisor, TUI, dashboards)
- external_factors/ (EsoF producer)
- mc_forewarning_qlabs_fork/ (MC regime/envelope)

Excludes runtime caches, logs, backups, and reproducible artifacts per .gitignore.
2026-04-21 16:58:38 +02:00

27 lines
697 B
Bash
Executable File

#!/bin/sh
# PROVIDE: meta_health_daemon
# REQUIRE: DAEMON NETWORKING hazelcast prefect_worker
# KEYWORD: shutdown
. /etc/rc.subr
name="meta_health_daemon"
rcvar="meta_health_daemon_enable"
load_rc_config $name
# Default settings
: ${meta_health_daemon_enable:="NO"}
: ${meta_health_daemon_user:="dolphin"}
: ${meta_health_daemon_root:="/mnt/dolphinng5_predict/prod"}
# Command setup
command="/usr/local/bin/python3"
command_args="${meta_health_daemon_root}/meta_health_daemon.py"
pidfile="/var/run/${name}.pid"
# Run command with nohup and redirect to log for basic daemonization
start_cmd="daemon -u ${meta_health_daemon_user} -p ${pidfile} ${command} ${command_args}"
run_rc_command "$1"