From 55d7fbf04cb8a2595f320c40c68eebfa1f462966 Mon Sep 17 00:00:00 2001 From: Kyle Brandt Date: Wed, 16 Oct 2019 12:24:28 -0400 Subject: [PATCH] devenv: have bra watch attempt graceful shutdown (#19857) This is useful when working with backend plugins and grafana at the same time. Makes it so Grafana has a chance to shutdown the external process. An os.Interrupt signal is first sent, then after a five second wait a a force kill will be sent if the process is still running. --- .bra.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bra.toml b/.bra.toml index b455c55e20b..a9ffaa4a227 100644 --- a/.bra.toml +++ b/.bra.toml @@ -17,3 +17,5 @@ cmds = [ ["go", "run", "-mod=vendor", "build.go", "-dev", "build-server"], ["./bin/grafana-server", "-packaging=dev", "cfg:app_mode=development"] ] +interrupt_timout = 5 +graceful_kill = true