aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grafana/grafana.initd
blob: a3458f91290dd25d8c669f630f818d3e3ecbff5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run

command="/usr/sbin/grafana-server"
command_args="$GRAFANA_OPTS"
command_background=yes
command_user=grafana:grafana
pidfile="/run/$RC_SVCNAME.pid"

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
}