remove the 1NFR4 dashboard panel and the now-writer-less audit log
This commit is contained in:
parent
c3cd36bc41
commit
22adfd1451
21 changed files with 61 additions and 983 deletions
|
|
@ -680,21 +680,6 @@ pub async fn is_running(name: &str) -> bool {
|
|||
.is_ok_and(|s| s.success())
|
||||
}
|
||||
|
||||
/// True when a hive infrastructure service's systemd unit is active.
|
||||
/// Sibling of [`is_running`] for sub-agents, but infra names (`hive-ci`, …)
|
||||
/// have no `h-` prefix to strip and are not all containers, so the unit
|
||||
/// comes from the variant itself rather than from [`container_name`]. Used
|
||||
/// by the dashboard C0R3 page's 1NFR4 sub-tab to show each one's live
|
||||
/// status dot.
|
||||
pub async fn infra_is_running(container: hive_priv_sock::InfraContainer) -> bool {
|
||||
let unit = container.service_unit();
|
||||
Command::new("systemctl")
|
||||
.args(["is-active", "--quiet", &unit])
|
||||
.status()
|
||||
.await
|
||||
.is_ok_and(|s| s.success())
|
||||
}
|
||||
|
||||
/// Fully tear down a sub-agent's container: stop + remove via `nixos-container
|
||||
/// destroy`, then clean our own systemd drop-in. Leaves it to the caller to
|
||||
/// wipe `/var/lib/hyperhive/...` state and the per-agent runtime dir.
|
||||
|
|
|
|||
Loading…
Reference in a new issue