Skip to content

Commit 53e3418

Browse files
tomwilkiediscordianfish
authored andcommitted
Add init.d script for OpenWrt.
Signed-off-by: Tom Wilkie <tom@grafana.com>
1 parent 0105455 commit 53e3418

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh /etc/rc.common
2+
3+
START=99
4+
5+
USE_PROCD=1
6+
PROG="/usr/bin/node_exporter"
7+
OPTIONS="--web.listen-address=:9100"
8+
9+
start_service() {
10+
procd_open_instance
11+
procd_set_param command "$PROG" "${OPTIONS}"
12+
procd_close_instance
13+
}

0 commit comments

Comments
 (0)