This commit is contained in:
Daniel
2024-11-12 13:30:47 +01:00
parent ddf7ba170e
commit 8b1bdc7eb1
9 changed files with 70 additions and 50 deletions

View File

@@ -78,6 +78,8 @@ func main() {
}
instance.AddModule(observer)
// FIXME: Use service?
// Execute command line operation, if requested or available.
switch {
case !execCmdLine:
@@ -126,7 +128,7 @@ func main() {
slog.Warn("program was interrupted, stopping")
}
case <-instance.Stopped():
case <-instance.ShuttingDown():
log.Shutdown()
os.Exit(instance.ExitCode())
}