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