Beispiel #1
0
func Restart(shutdown func()) {
	cause := <-restartCause
	log.Printf("restarting... (%s)", cause)
	shutdown()
	restart.Do()
}
Beispiel #2
0
func Restart() {
	cause := <-restartCause
	log.Printf("restarting... (%s)", cause)
	restart.Do()
}