Stop all containers

This commit is contained in:
Christopher LaPointe
2023-05-23 21:52:33 -04:00
parent 757be8639f
commit c0ec096bd5
2 changed files with 18 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ func main() {
}
defer core.Close()
if config.Model.StopAtBoot {
core.StopAll()
}
// Set up http server
subFs, _ := fs.Sub(httpAssets, "assets")
http.Handle(httpAssetPrefix, http.StripPrefix(httpAssetPrefix, http.FileServer(http.FS(subFs))))