docs(reference): import Dune: Awakening server-manager references
Phase 2 references for the host-agent Dune adapter, moved out of volatile /tmp
into docs/reference-repos/ (per Commander). Three upstream projects, .git +
node_modules + compiled binaries stripped (16MB source). Nested AI-instruction
files (.claude/, CLAUDE.md) removed so they don't pollute Corrosion sessions.
- icehunter/ dune-admin (Go+React) — 4 control planes; SETUP_DOCKER.md is the
closest analog to our agent's Dune docker control plane (compose
lifecycle, docker logs, RabbitMQ-via-exec, dune Postgres schema)
- adainrivers/ Rust/Tauri desktop — SSH+k8s BattleGroup control, maintenance
daemon, in-game admin console (Rust idiom reference)
- the4rchangel/ Node web UI replacing battlegroup.bat — matches the Commander's
Hyper-V self-host path + game-config schema
See docs/reference-repos/README.md for the full index + how we use each.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#!/sbin/openrc-run
|
||||
# Alpine OpenRC init script for the Dune server management service.
|
||||
|
||||
name="dune-server-service"
|
||||
description="Dune server management service (Rust)"
|
||||
|
||||
command="/opt/dune-server-service/dune-server-service"
|
||||
command_user="dune:dune"
|
||||
pidfile="/run/dune-server-service.pid"
|
||||
|
||||
supervisor="supervise-daemon"
|
||||
respawn_delay=10
|
||||
respawn_max=0
|
||||
# supervise-daemon redirects stdout/stderr to the file so we can read tracing
|
||||
# output during boot/crash diagnosis.
|
||||
supervise_daemon_args="--stdout /var/log/dune-server-service.log --stderr /var/log/dune-server-service.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner dune:dune --mode 0755 /home/dune/.dune
|
||||
checkpath --directory --owner dune:dune --mode 0700 /home/dune/.dune/state
|
||||
checkpath --file --owner dune:dune --mode 0644 /var/log/dune-server-service.log
|
||||
export DUNE_SERVICE_HOME="${DUNE_SERVICE_HOME:-/home/dune}"
|
||||
export DUNE_DASHBOARD_PORT="${DUNE_DASHBOARD_PORT:-29187}"
|
||||
if [ -f /etc/dune-server-service.env ]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
. /etc/dune-server-service.env
|
||||
set +a
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user