#!/bin/bash # Keepalived health check: edgeguard-api erreichbar? # Weight -50 → BACKUP gewinnt wenn Primary-API nicht antwortet. curl -sf --max-time 2 --unix-socket /run/edgeguard/api.sock \ http://localhost/api/v1/system/health > /dev/null 2>&1 \ || curl -sf --max-time 2 http://127.0.0.1:9443/api/v1/system/health > /dev/null 2>&1