From 133b989ae667e31c79604ce50771b264735a6a04 Mon Sep 17 00:00:00 2001 From: Aaditya Bagga Date: Wed, 7 Nov 2018 22:17:00 +0000 Subject: 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 --- system/netdata-openrc.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/netdata-openrc.in') 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 } -- cgit v1.2.3