mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
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:
1 parent
1f9621cf4b
commit
c9f1bff419
7 files changed
+87
-25
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user