a failed container start shows the unit's own journal lines in the op output
This commit is contained in:
parent
894349459a
commit
9a773349a8
1 changed files with 203 additions and 5 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue