@cryptotaxi247 / netdata-1 / commits / 133b989ae

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

Aaditya Bagga committed Nov 7, 2018 at 22:17 UTC 133b989ae667e31c79604ce50771b264735a6a04
1 file changed +2
system/netdata-openrc.in
+2
@@ -35,7 +35,9 @@ depend() {
35 use logger
36 need net
37 after ${NETDATA_START_AFTER_SERVICES}
38 +}
39
40 +start_pre() {
41 checkpath -o ${NETDATA_OWNER} -d @localstatedir_POST@/cache/netdata @localstatedir_POST@/run/netdata
42 }
43