mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
In swarm the role gated init only through "wait for Zammad init (seeds + pk-sequence reset)", which checks database state. On an existing installation that state is already there, so a swarm deploy that restarts init while Elasticsearch refuses shards passed: the init task kept failing on the allocation precheck and nothing reported it. A swarm-only task now runs sys-svc-compose's job_state.sh against the init service after the seeds wait. It passes once the newest init task is Complete. If the newest task stays Failed, it fails the deploy after 60 retries 5 s apart. An init the stack deploy did not restart is already Complete and passes at once. Compose needs no extra wait, because railsserver depends on init with service_completed_successfully. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>