Add control db interface for triggering hooks, add shutdown/restart hooks

This commit is contained in:
Daniel
2020-04-24 10:02:07 +02:00
parent 350555f843
commit d2d69139b9
4 changed files with 156 additions and 1 deletions

View File

@@ -31,10 +31,19 @@ func init() {
)
}
func prep() error {
registerEvents()
return nil
}
func start() error {
if err := startPlatformSpecific(); err != nil {
return fmt.Errorf("failed to start plattform-specific components: %s", err)
}
if err := registerEventHooks(); err != nil {
return err
}
return nil
}