func addShutDownHook()

in cmd/start.go [65:72]


func addShutDownHook(stopFunc func()) {
	c := make(chan os.Signal, 1)
	signal.Notify(c, os.Interrupt, syscall.SIGTERM)
	go func() {
		<-c
		stopFunc()
	}()
}