diff options
author | Paul Gier <pgier@redhat.com> | 2018-11-15 17:50:09 -0600 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-11-16 00:50:09 +0100 |
commit | 3cf5b006fb22068c8c72b0e7acabc1ae988560d3 (patch) | |
tree | 05fcb0d60bbf263e4b7e91b38ed5df61a4744d46 /examples | |
parent | ab19e0c831d9c2482880cd03271f045246ffec47 (diff) | |
download | prometheus_node_collector-3cf5b006fb22068c8c72b0e7acabc1ae988560d3.tar.bz2 prometheus_node_collector-3cf5b006fb22068c8c72b0e7acabc1ae988560d3.tar.xz prometheus_node_collector-3cf5b006fb22068c8c72b0e7acabc1ae988560d3.zip |
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>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/init.d/node_exporter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/init.d/node_exporter b/examples/init.d/node_exporter index 74c6243..12d28aa 100755 --- a/examples/init.d/node_exporter +++ b/examples/init.d/node_exporter | |||
@@ -4,7 +4,7 @@ RETVAL=0 | |||
4 | PROG="node_exporter" | 4 | PROG="node_exporter" |
5 | EXEC="/etc/node_exporter/node_exporter" | 5 | EXEC="/etc/node_exporter/node_exporter" |
6 | LOCKFILE="/var/lock/subsys/$PROG" | 6 | LOCKFILE="/var/lock/subsys/$PROG" |
7 | OPTIONS="-web.listen-address=:9201" | 7 | OPTIONS="--web.listen-address=:9100" |
8 | 8 | ||
9 | # Source function library. | 9 | # Source function library. |
10 | if [ -f /etc/rc.d/init.d/functions ]; then | 10 | if [ -f /etc/rc.d/init.d/functions ]; then |