generated from coulomb/repo-seed
feat(maintenance): nightly stale SSH forward cleanup at 03:00
Add bridge maintenance cleanup to detect reverse tunnels whose remote port is bound but no longer forwards (zombie sshd sessions), kill the stale listeners on the remote host, and optionally restart the tunnel. Includes install-cron/uninstall-cron/show-cron helpers and README notes for the actcore-state-hub-bridge failure mode we hit on railiance01.
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,6 +1,6 @@
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
.PHONY: help setup test lint install mcp-http mcp-stop
|
||||
.PHONY: help setup test lint install mcp-http mcp-stop cron-install-cron cron-uninstall-cron
|
||||
|
||||
help: ## List available make targets
|
||||
@awk 'BEGIN {FS = ":.*## "}; /^[a-zA-Z0-9_.-]+:.*## / {printf " %-16s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
@@ -23,3 +23,9 @@ mcp-http: ## Start MCP server in SSE mode (default port 8002)
|
||||
|
||||
mcp-stop: ## Stop MCP server running on port 8002
|
||||
@lsof -ti:$${BRIDGE_MCP_PORT:-8002} | xargs -r kill -TERM && echo "MCP server stopped" || echo "No MCP server running on port $${BRIDGE_MCP_PORT:-8002}"
|
||||
|
||||
cron-install-cron: ## Install 03:00 nightly stale-forward cleanup cron
|
||||
bridge maintenance install-cron
|
||||
|
||||
cron-uninstall-cron: ## Remove nightly stale-forward cleanup cron
|
||||
bridge maintenance uninstall-cron
|
||||
|
||||
Reference in New Issue
Block a user