Watch
0
0
Fork
You've already forked hyperhive
0

a failed container start shows the unit's own journal lines in the op output

This commit is contained in:
atlas 2026-11-01 16:33:26 +01:00 • committed by mara
commit 9a773349a8

View file

@ -216,6 +216,19 @@ pub async fn start_container(name: &str) -> Result<()> {
.await?)
}
/// The container unit's journal lines since `since_unix`. An older hive-priv
/// answers an error (it does not know the op).
pub async fn start_failure_log(name: &str, since_unix: u64) -> Result<String> {
let (stdout, _) = check(
call(&PrivRequest::StartFailureLog {
name: name.to_owned(),
since_unix,
})
.await?,
)?;
Ok(stdout)
}
pub async fn stop_container(name: &str) -> Result<()> {
ok(call(&PrivRequest::StopContainer {
name: name.to_owned(),