~dricottone/huttese-apk

ref: ae26d1e5bb093a083694c88bf21d50695b408838 huttese-apk/prometheus/prometheus-node-exporter/prometheus-node-exporter.initd -rw-r--r-- 462 bytes
ae26d1e5 — Drew DeVault sr.ht/py3-celery: upgrade to 4.4.0 4 years ago
                                                                                
c8dc5dbd Drew DeVault
357c370a Drew DeVault
c8dc5dbd Drew DeVault
357c370a Drew DeVault
c8dc5dbd Drew DeVault
357c370a Drew DeVault
c8dc5dbd Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
name="prometheus-node-exporter"
description="prometheus node exporter"

depend() {
	need net
}

start() {
	ebegin "Starting $name"
	start-stop-daemon -C --background --make-pidfile --pidfile /run/$name.pid \
		--exec /usr/bin/prometheus_node_exporter -- \
		--web.listen-address=127.0.0.1:9100
	eend $?
}

stop() {
	ebegin "Stopping $name"
	start-stop-daemon --stop --exec /usr/bin/prometheus-node-exporter --pidfile /run/$name.pid
	eend $?
}