feat(#1107): hivectl agents restart / restart-all commands

This commit is contained in:
damocles 2026-06-03 10:45:48 +02:00 committed by mara
commit 26f2c1f59b
3 changed files with 116 additions and 5 deletions

View file

@ -31,6 +31,14 @@ pub enum HostRequest {
#[serde(default)]
purge: bool,
},
/// Stop and start a managed container without rebuilding config.
/// For "kick the container" operations that don't touch the flake or
/// nspawn flags. Mirrors `lifecycle::restart` (kill + start).
Restart { name: String },
/// Stop and restart all managed containers in sequence. Convenience
/// wrapper for `hivectl agents restart-all`; iterates the live
/// container list and restarts each one.
RestartAll,
/// Apply pending config to a managed container.
Rebuild { name: String },
/// List managed containers.