From 3cf5b006fb22068c8c72b0e7acabc1ae988560d3 Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Thu, 15 Nov 2018 17:50:09 -0600 Subject: [PATCH] examples/init.d: fix web.listen-address flag (#1157) CLI flags use two dashes instead of one since v0.15.0 Also, use default port number Fixes #1156 Signed-off-by: Paul Gier --- examples/init.d/node_exporter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/init.d/node_exporter b/examples/init.d/node_exporter index 74c62432..12d28aa5 100755 --- a/examples/init.d/node_exporter +++ b/examples/init.d/node_exporter @@ -4,7 +4,7 @@ RETVAL=0 PROG="node_exporter" EXEC="/etc/node_exporter/node_exporter" LOCKFILE="/var/lock/subsys/$PROG" -OPTIONS="-web.listen-address=:9201" +OPTIONS="--web.listen-address=:9100" # Source function library. if [ -f /etc/rc.d/init.d/functions ]; then