func blockUntilSignalOrTermination() {
	sigChan := make(chan os.Signal, 1)
	signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)

	//Block until terminated
	select {
	case <-sigChan:
		log.Info("closing due to interrupt")
	case <-chanQuit:
		log.Info("closing from quit message")
	}
}
//holds the main thread until either an interrupt from OS, or the chanQuit receives a message
holds the main thread until either an interrupt from OS, or the chanQuit receives a message
// holds the main thread until either an interrupt from OS or the chanQuit receives a message
func blockUntilSignalOrTermination() {
	sigChan := make(chan os.Signal, 1)
	signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
	select {
	case <-sigChan:
		log.Info("closing due to interrupt")
	case <-chanQuit:
		log.Info("closing from quit message")
	}
}
func blockUntilSignalOrTermination ( ) { sigChan := make ( chan os . Signal , 1 ) signal . Notify ( sigChan , os . Interrupt , syscall . SIGTERM ) select { case <- sigChan : log . Info ( " " ) case <- chanQuit : log . Info ( " " ) } }
holds the main thread until either an interrupt from OS, or the chanQuit receives a message
holds the main thread until either an interrupt from OS or the chanQuit receives a message
//Block until terminated