Spaces:
Paused

somratpro Claude Sonnet 4.6 commited on
Commit
bdb63d2
·
1 Parent(s): 6c85d60

fix: sync state on natural gateway exit to preserve user-set keys

Browse files

When user restarts the gateway from Hermes dashboard, the gateway
process exits naturally. wait() returns but SIGTERM trap never fires,
so no sync runs before the container shuts down. Keys set via the UI
are lost because the next restore pulls a stale backup.

Add an explicit sync-once after wait() to cover the natural-exit path.
SIGTERM path already handled by graceful_shutdown trap.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

1 file changed +7
start.sh+7