summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAaditya Bagga <abchk1234@gmail.com>2018-11-07 22:17:00 +0000
committerCosta Tsaousis <costa@tsaousis.gr>2018-11-08 00:17:00 +0200
commit133b989ae667e31c79604ce50771b264735a6a04 (patch)
tree7ecdb8afa6173da30bae099212f99b1c76e27bb5 /system
parent25af0817479c6e9c0a1cfb7b266704bed1b8cbb3 (diff)
netdata-openrc: Move check from depends() function to start_pre() (#4575)
check should be in start_pre() as its only needed when starting the service as opposed to depends() which can be called anytime to evaluate service dependencies
Diffstat (limited to 'system')
-rw-r--r--system/netdata-openrc.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in
index e0070526f1..2acf282e60 100644
--- a/system/netdata-openrc.in
+++ b/system/netdata-openrc.in
@@ -35,7 +35,9 @@ depend() {
use logger
need net
after ${NETDATA_START_AFTER_SERVICES}
+}
+start_pre() {
checkpath -o ${NETDATA_OWNER} -d @localstatedir_POST@/cache/netdata @localstatedir_POST@/run/netdata
}