fix: SSH keepalive, director fallback, Ctrl+C handler, namespace ordering
- SSH transport keepalive (15s) + stale client cleanup for reliable reconnection - Ctrl+C signal handler (os._exit) to bypass stuck daemon threads - Director API fallback: SSH + wget to BGD service cluster IP (no tunnel needed) - Namespace auto-detection moved before DirectorService creation - Director host defaults to 127.0.0.1 (configurable via director.host) - Connection monitor: 60s -> 30s interval - Backup scheduler: skip if SSH unreachable instead of blocking 300s
This commit is contained in:
1 parent
65a1948fd1
commit
42eec81081
5 files changed
+99
-13
No files matched your search
@@ -67,6 +67,12 @@ if __name__ == '__main__':
|
||||
print(" [WARN] Binding to 0.0.0.0 without SSL! Credentials sent in cleartext.")
|
||||
print(" [WARN] DUNE_ALLOW_INSECURE_REMOTE is set - override is active\n")
|
||||
|
||||
import signal
|
||||
def _shutdown(sig, frame):
|
||||
logging.getLogger(__name__).info("Shutdown signal received, exiting...")
|
||||
os._exit(0)
|
||||
signal.signal(signal.SIGINT, _shutdown)
|
||||
|
||||
# Start optional HTTP -> HTTPS redirect server when SSL is enabled.
|
||||
# This is convenience only; the dashboard works without port 80 if users visit https://host:port.
|
||||
if ssl_context and settings['dashboard'].get('http_redirect', False):
|
||||
|
||||
Reference in new issue
Block a user