Beispiel #1
0
func recvChangeSig(sigchan <-chan os.Signal) {
	// aostor.FillCaches(true)
	for _ = range sigchan {
		logger.Printf("\n\n***\nreceived Change signal, calling FillCaches")
		aostor.FillCaches(true)
		logger.Printf("\n***\n\n")
	}
}
Beispiel #2
0
func sigHandler(w http.ResponseWriter, r *http.Request) {
	logger.Printf("SIGNAL")
	aostor.FillCaches(true)
	w.Write([]byte("OK"))
}