Refactor ready:script to support new notify framework

Follow-up to abcb3ce, calling the service ready:script when readiness
has been signaled to or detected by Finit.

Issue #300

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-10-16 22:11:12 +02:00
1 parent 1f9621cf4b
commit c9f1bff419
7 files changed
+87 -25

No files matched your search

-7
View File
@@ -297,17 +297,10 @@ int cond_set_noupdate(const char *name)
void cond_set(const char *name)
{
svc_t *svc;
dbg("%s", name);
if (cond_set_noupdate(name))
return;
/* XXX: refactor when new notify framework is in place */
svc = svc_find_by_cond(name);
if (svc && svc_has_ready(svc))
service_ready_script(svc);
cond_update(name);
}