aports/testing/netdata/netdata.initd
Leo 6574fb62f7 testing/netdata: ship /var/lib/netdata with proper permissions
We already do that for /var/log/netdata and /var/cache/netdata, this is
the last piece for people that want to run netadata outside of docker
containers.

Fixes #11678
2020-06-24 20:03:56 +00:00

18 lines
432 B
Plaintext

#!/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/log/netdata
checkpath --directory --owner netdata:netdata --mode 0750 /var/cache/netdata
}