Node_Exporter/examples/openwrt-init.d/node_exporter
Tom Wilkie 53e3418e5f Add init.d script for OpenWrt.
Signed-off-by: Tom Wilkie <tom@grafana.com>
2020-04-28 16:14:19 +02:00

14 lines
225 B
Bash
Executable File

#!/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
}