code: func trapSignalsCrossPlatform() {
  	go func() {
  		shutdown := make(chan os.Signal, 1)
  		signal.Notify(shutdown, os.Interrupt)
  
  		for i := 0; true; i++ {
  			<-shutdown
  
  			if i > 0 {
  				log.Println("[INFO] SIGINT: Force quit")
  				if PidFile != "" {
  					os.Remove(PidFile)
  				}
  				os.Exit(1)
  			}
  
  			log.Println("[INFO] SIGINT: Shutting down")
  
  			if PidFile != "" {
  				os.Remove(PidFile)
  			}
  
  			go os.Exit(executeShutdownCallbacks("SIGINT"))
  		}
  	}()
  }
docs: // trapSignalsCrossPlatform captures SIGINT, which triggers forceful
  // shutdown that executes shutdown callbacks first. A second interrupt
  // signal will exit the process immediately.