fix(matrix): queue tuwunel's start after the guest's boot is over
The deferred starter was a oneshot that ran `systemctl start --no-block tuwunel` inside the boot transaction. A --no-block start still queues a start job, so the guest's job queue stayed non-empty for as long as tuwunel's start took, and the container (Type=notify, --notify-ready=yes, one minute) never reported ready and was killed at its limit. The starter is now Type=simple, so its own start job ends at the fork. It waits for `systemctl is-system-running --wait` and only then queues the service. The VM test waits for the daemon to reach `activating` instead of asserting it the moment the container's start ends.
This commit is contained in:
parent
19640f3bf8
commit
3919de6358
1 changed files with 40 additions and 23 deletions
|
|
@ -39,8 +39,10 @@ Same shape as [`gateway.md::hive-forge container shape`](../../4-implementation/
|
|||
the journal (`tuwunel-fallocate-probe:`) and leaves the default.
|
||||
- tuwunel starts after the container is up, not during its boot. The
|
||||
container's start job (`container@hive-matrix.service`, one minute) ends when
|
||||
the guest's boot does, and a oneshot in the guest starts tuwunel without
|
||||
waiting for it. tuwunel's own start, which replays the database's
|
||||
the guest's boot does, and a unit in the guest queues tuwunel's start once
|
||||
the boot is over, without waiting for it. (Queued during the boot, the start
|
||||
job would hold the container's start for as long as tuwunel's start takes.)
|
||||
tuwunel's own start, which replays the database's
|
||||
write-ahead log from the beginning at every open, has its own limit of 30
|
||||
minutes, and extends it while it reports progress. While it starts, the
|
||||
gateway answers for the homeserver with an error, and the swarm's matrix
|
||||
|
|
|
|||
Loading…
Reference in a new issue