feat(#1107): hivectl agents restart / restart-all commands
This commit is contained in:
parent
ce52419fe4
commit
26f2c1f59b
3 changed files with 116 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue