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 <pgier@redhat.com>
This commit is contained in:
Paul Gier 2018-11-15 17:50:09 -06:00 committed by Ben Kochie
parent ab19e0c831
commit 3cf5b006fb

View file

@ -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