appmgr: remap stopped to crashed if expected to be running

This commit is contained in:
Aiden McClelland
2020-12-02 20:38:52 -07:00
committed by Keagan McClelland
parent 7939dcc4e2
commit 1a66a5d240
7 changed files with 43 additions and 16 deletions

View File

@@ -115,7 +115,9 @@ impl DepInfo {
if !errors.is_empty() {
return Ok(Err(DependencyError::ConfigUnsatisfied(errors)));
}
if crate::apps::status(dependency_id).await?.status != crate::apps::DockerStatus::Running {
if crate::apps::status(dependency_id, false).await?.status
!= crate::apps::DockerStatus::Running
{
return Ok(Err(DependencyError::NotRunning));
}
Ok(Ok(()))