mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-05 16:01:42 +01:00
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
18 lines
432 B
Plaintext
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
|
|
}
|