mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
prevent hanging on reboot (#2526)
This commit is contained in:
@@ -54,6 +54,17 @@ impl Shutdown {
|
|||||||
tracing::error!("Error Stopping Docker: {}", e);
|
tracing::error!("Error Stopping Docker: {}", e);
|
||||||
tracing::debug!("{:?}", e);
|
tracing::debug!("{:?}", e);
|
||||||
}
|
}
|
||||||
|
} else if CONTAINER_TOOL == "podman" {
|
||||||
|
if let Err(e) = Command::new("podman")
|
||||||
|
.arg("rm")
|
||||||
|
.arg("-f")
|
||||||
|
.arg("netdummy")
|
||||||
|
.invoke(crate::ErrorKind::Docker)
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
tracing::error!("Error Stopping Podman: {}", e);
|
||||||
|
tracing::debug!("{:?}", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if let Some((guid, datadir)) = &self.export_args {
|
if let Some((guid, datadir)) = &self.export_args {
|
||||||
if let Err(e) = export(guid, datadir).await {
|
if let Err(e) = export(guid, datadir).await {
|
||||||
|
|||||||
Reference in New Issue
Block a user