hive: stop controlling the swarm's forge and matrix containers
The forge and matrix are swarm services; per mara's ruling on #5475 (shape a) a hive no longer starts, stops or restarts them. - hive-priv-sock: InfraContainer keeps only Gateway; InfraTarget goes, service_unit maps the gateway to nginx.service directly. A ControlInfraContainer naming Forge/Matrix fails to decode. - hive-host-sock: LifecycleScope drops forge/matrix and refuses unknown fields, so an older hivectl's --forge is an error rather than an all-false scope meaning everything. - hive-c0re: scoped_infra selects only the gateway. - hivectl: --forge/--matrix removed from stop/start/restart. - docs: services.md says how the forge and matrix are managed; security.md, coordinator.md and hivectl-cli.md follow. - hive-host-sock, hivectl/power.rs: Stop and RestartScoped doc comments name the gateway (host nginx.service), not infra containers.
This commit is contained in:
parent
be92bc0835
commit
d4f3d1ef8e
12 changed files with 177 additions and 203 deletions
|
|
@ -44,6 +44,13 @@ config repo, so **exactly one host must turn it on**: `singleHostSwarm`,
|
|||
host that enables its services one by one without any of those runs no
|
||||
forge.
|
||||
|
||||
A hive can't start or stop any of these. `hivectl stop`, `start` and
|
||||
`restart` act on the hive's agents and its gateway only, even on the
|
||||
host that runs the swarm's services. The forge and matrix containers are
|
||||
systemd units on that host (`container@hive-forge.service`,
|
||||
`container@hive-matrix.service`), and the operator manages them there
|
||||
with `systemctl`.
|
||||
|
||||
A hive that runs none of these reaches each one by name — the forge at
|
||||
`forge.<swarm-domain>`, for example. Only the host running a service
|
||||
answers its name from its own resolver, so on a swarm spread over
|
||||
|
|
|
|||
Loading…
Reference in a new issue