sending yourself a HUP signal in Go

done := make(chan os.Signal, 1)
signal.Notify(done, syscall.SIGHUP)
log.Info("Config change detected, sending SIGHUP")
done <- syscall.SIGHUP

ugly..., but robust enough - I think

Sign in to participate in the conversation

Everyone is welcome as long as you follow our code of conduct! Thank you. is maintained by Sujitech, LLC.