Commit 04c23ef3 by Torkel Ödegaard

fix(SIGHUP): ignore SIGHUP syscall, fixes #6276

parent 30645a6d
......@@ -102,8 +102,10 @@ func writePIDFile() {
func listenToSystemSignals(server models.GrafanaServer) {
signalChan := make(chan os.Signal, 1)
ignoreChan := make(chan os.Signal, 1)
code := 0
signal.Notify(ignoreChan, syscall.SIGHUP)
signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM)
select {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment