aboutsummaryrefslogtreecommitdiff
path: root/examples/openwrt-init.d/node_exporter
blob: 1aed38becf27ed332ae88d011f4260aa5c46d0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}