Follow

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
mastodon.cloud

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