mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 06:04:20 -08:00
Add init.d script for OpenWrt.
Signed-off-by: Tom Wilkie <tom@grafana.com>
This commit is contained in:
parent
01054558c2
commit
53e3418e5f
13
examples/openwrt-init.d/node_exporter
Executable file
13
examples/openwrt-init.d/node_exporter
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
PROG="/usr/bin/node_exporter"
|
||||
OPTIONS="--web.listen-address=:9100"
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG" "${OPTIONS}"
|
||||
procd_close_instance
|
||||
}
|
Loading…
Reference in a new issue