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