~dricottone/huttese-apk

ref: e03b8eab755a8fe00cafa6e4f709be576ce9676e huttese-apk/prometheus/grafana/grafana.initd -rw-r--r-- 475 bytes
e03b8eab — Drew DeVault sr.ht/git-send-email.io: update to 0.1.9 4 years ago
                                                                                
b858cc07 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/openrc-run

supervisor=supervise-daemon

name="Grafana"
description="Metrics Dashboard and Graph Editor"

command="/usr/sbin/grafana-server"
command_args="$GRAFANA_OPTS"

command_user=grafana:grafana

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath -d -o grafana:grafana -m755 $GRAFANA_HOME \
		$GRAFANA_HOME/provisioning \
		$GRAFANA_HOME/provisioning/dashboards \
		$GRAFANA_HOME/provisioning/datasources \
		$GRAFANA_HOME/provisioning/notifiers
}