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

command=/usr/sbin/netdata
pidfile=/run/netdata.pid
command_args="-P ${pidfile}"
name="netdata"
description="Real-time performance monitoring"

depend() {
	need net
	after apache2 squid nginx mysql named opensips hostapd postfix lm_sensors
}

start_pre() {
	checkpath --directory --owner netdata:netdata --mode 0750 /var/lib/netdata
	checkpath --directory --owner netdata:netdata --mode 0750 /var/log/netdata
	checkpath --directory --owner netdata:netdata --mode 0750 /var/cache/netdata
}