func listenForInterrupts() {

	// Relay incoming OS interrupt signals to the signalChan.
	signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM, syscall.SIGINT)
	sig := <-signalChan // This is a blocking operation -- the routine will stop here until there is something sent down the channel.
	log.Infoln("Received an interrupt signal from the signal channel")
	log.Debugln("Signal received was:", sig.String())

	// Clean up pods here.
	log.Infoln("Shutting down")

	os.Exit(0)
}
// listenForInterrupts watches the signal and done channels for termination.
listenForInterrupts watches the signal and done channels for termination.
// listenForInterrupts watches the signal and done channels for termination .
func listenForInterrupts() {
	signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM, syscall.SIGINT)
	sig := <-signalChan 
	log.Infoln("Received an interrupt signal from the signal channel")
	log.Debugln("Signal received was:", sig.String())
	log.Infoln("Shutting down")
	os.Exit(0)
}
func listenForInterrupts ( ) { signal . Notify ( signalChan , os . Interrupt , os . Kill , syscall . SIGTERM , syscall . SIGINT ) sig := <- signalChan log . Infoln ( " " ) log . Debugln ( " " , sig . String ( ) ) log . Infoln ( " " ) os . Exit ( 0 ) }
listenForInterrupts watches the signal and done channels for termination.
listenForInterrupts watches the signal and done channels for termination .
// Relay incoming OS interrupt signals to the signalChan. // This is a blocking operation -- the routine will stop here until there is something sent down the channel. // Clean up pods here.