lib/db: Make database GC a service, stop on Stop() (#6518)

This makes the GC runner a service that will stop fairly quickly when
told to.

As a bonus, STTRACE=app will print the service tree on the way out,
including any errors they've flagged.
This commit is contained in:
Jakob Borg
2020-04-12 10:26:57 +02:00
committed by GitHub
parent 046bbdfbd4
commit 0e67c036bb
3 changed files with 73 additions and 12 deletions
+4
View File
@@ -13,3 +13,7 @@ import (
var (
l = logger.DefaultLogger.NewFacility("app", "Main run facility")
)
func shouldDebug() bool {
return l.ShouldDebug("app")
}