1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

show information about slow starting services on start

This commit is contained in:
Robin Appelman 2026-09-08 00:15:29 +02:00
commit 5555efbfcc
5 changed files with 154 additions and 56 deletions

View file

@ -205,6 +205,14 @@ pub trait ServiceTrait {
fn exec_shell(&self) -> &'static str {
"bash"
}
/// Allow services to delay the completion of the `start` command untill they are fully setup
///
/// This is not for services which are critical for the running of the instance (use `is_healthy` for that)
/// But instead for cases where the instance is mostly usable, but might have some missing features
async fn final_wait(&self, _docker: &Docker, _cloud_id: &str) -> Result<()> {
Ok(())
}
}
#[derive(Clone, Eq, PartialEq, Debug)]