mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
20 lines
547 B
Bash
20 lines
547 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="Netdata"
|
|
description="Real-time performance monitoring"
|
|
command="/usr/sbin/netdata"
|
|
command_args_foreground="-D"
|
|
|
|
# Needed for disk I/O utilization reporting.
|
|
# (This is supported since OpenRC 0.45)
|
|
capabilities="^cap_dac_read_search,^cap_sys_ptrace"
|
|
|
|
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
|
|
}
|