grafana/pkg/cmd/grafana-server
maicon a6aa219895 Reopen log files after receiving a SIGHUP signal (#13112)
* Reopen log files after receiving a SIGHUP signal

Implements a system signals listener in log.FileLogWriter.

After receiving a SIGHUP signal from the system, the listener will close the current log file and then open it again.

The listener will finishes after receiving a SIGINT, SIGKILL or SIGTERM signal.

Closes grafana/grafana#2497

* Move the SIGHUP handling to the main file
2018-09-04 10:31:41 +02:00
..
main.go Reopen log files after receiving a SIGHUP signal (#13112) 2018-09-04 10:31:41 +02:00
server.go avoid calling os.Exit outside main.go (#12459) 2018-06-29 22:48:26 -07:00