summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-08-27 10:55:00 +0200
committerJohn Crispin <blogic@openwrt.org>2014-08-29 16:14:57 +0200
commita396e6d88946a7009d41315bdeea54da42b27d39 (patch)
treeb122e768f3c6073546ffb49222c2f824a472b04b
parent0fc1e953351f89a52a6eaaab140729d34ca07809 (diff)
downloadunitd-a396e6d88946a7009d41315bdeea54da42b27d39.tar
unitd-a396e6d88946a7009d41315bdeea54da42b27d39.zip
add an event for "service.update" triggers
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--service/service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/service.c b/service/service.c
index bde2165..a0fa2d5 100644
--- a/service/service.c
+++ b/service/service.c
@@ -66,6 +66,8 @@ service_instance_update(struct vlist_tree *tree, struct vlist_node *node_new,
DEBUG(2, "Create instance %s::%s\n", in_n->srv->name, in_n->name);
instance_start(in_n);
}
+ blob_buf_init(&b, 0);
+ trigger_event("instance.update", b.head);
}
static struct service *