From ab1ece95be19539748dd464caea00014593a409e Mon Sep 17 00:00:00 2001
From: Nick Thomas <nick@gitlab.com>
Date: Mon, 20 Feb 2017 16:02:09 +0000
Subject: [PATCH] Pass the metrics address fd to the child process

---
 daemon.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/daemon.go b/daemon.go
index 69feed1..84ca7c1 100644
--- a/daemon.go
+++ b/daemon.go
@@ -205,6 +205,7 @@ func daemonize(config appConfig, uid, gid uint) {
 	daemonUpdateFds(cmd, config.ListenHTTP)
 	daemonUpdateFds(cmd, config.ListenHTTPS)
 	daemonUpdateFds(cmd, config.ListenProxy)
+	config.ListenMetrics = daemonUpdateFd(cmd, config.ListenMetrics)
 
 	// Start the process
 	if err = cmd.Start(); err != nil {
-- 
GitLab