fix(install.sh): Post-Deployment --since Zeitstempel vor Gateway-Neustart setzen
_verify_since wurde bisher NACH dem Gateway-Neustart (und nach sleep 20) gesetzt, wodurch journalctl --since die Initialisierungs-Logs (PresenceEngine, Archivar, Connected) nicht fand — die erscheinen in den ersten 6-10s nach Gateway-Start. Fix: _verify_since VOR restart_gateway setzen, alte redundante Zuweisung in der Verifikations-Sektion entfernt.
This commit is contained in:
+4
-2
@@ -1482,6 +1482,10 @@ if $UPDATE_ONLY; then
|
|||||||
ok "Gateway-Neustart übersprungen (--no-restart)"
|
ok "Gateway-Neustart übersprungen (--no-restart)"
|
||||||
else
|
else
|
||||||
log "Starte Gateway neu..."
|
log "Starte Gateway neu..."
|
||||||
|
# Zeitstempel VOR dem Neustart setzen, damit journalctl --since
|
||||||
|
# die Initialisierungs-Logs (PresenceEngine, Archivar, Connected)
|
||||||
|
# erfasst, die in den ersten 6-10s nach Gateway-Start erscheinen.
|
||||||
|
_verify_since="$(date '+%Y-%m-%d %H:%M:%S')"
|
||||||
restart_gateway 2>/dev/null || true
|
restart_gateway 2>/dev/null || true
|
||||||
|
|
||||||
# Warte bis active (max 30s)
|
# Warte bis active (max 30s)
|
||||||
@@ -1513,8 +1517,6 @@ if $UPDATE_ONLY; then
|
|||||||
ok "Gateway-Prozess ist active — starte Log-Verifikation"
|
ok "Gateway-Prozess ist active — starte Log-Verifikation"
|
||||||
|
|
||||||
if command -v journalctl >/dev/null 2>&1; then
|
if command -v journalctl >/dev/null 2>&1; then
|
||||||
# Präziser Zeitstempel für journalctl --since (ab Gateway-Start)
|
|
||||||
_verify_since="$(date '+%Y-%m-%d %H:%M:%S')"
|
|
||||||
# Warte 20s: Gateway braucht ~6-8s für PresenceEngine, ~10-15s für
|
# Warte 20s: Gateway braucht ~6-8s für PresenceEngine, ~10-15s für
|
||||||
# Archivar/Connected (besonders nach Plugin-Updates mit FAISS-Rebuild)
|
# Archivar/Connected (besonders nach Plugin-Updates mit FAISS-Rebuild)
|
||||||
sleep 20
|
sleep 20
|
||||||
|
|||||||
Reference in New Issue
Block a user