diff --git a/pkg/cmd/grafana-server/server.go b/pkg/cmd/grafana-server/server.go index 6a0c87bb0e8..9e83f1036bb 100644 --- a/pkg/cmd/grafana-server/server.go +++ b/pkg/cmd/grafana-server/server.go @@ -162,7 +162,11 @@ func (g *GrafanaServerImpl) Run() error { }) } - sendSystemdNotification("READY=1") + err = sendSystemdNotification("READY=1") + if err != nil { + return fmt.Errorf("Could not send systemd notification: %v", err) + } + return g.childRoutines.Wait() }