mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
18 lines
508 B
Text
18 lines
508 B
Text
#!/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
|
|
}
|