diff options
author | John Crispin <blogic@openwrt.org> | 2014-08-27 10:55:00 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-08-29 16:14:57 +0200 |
commit | a396e6d88946a7009d41315bdeea54da42b27d39 (patch) | |
tree | b122e768f3c6073546ffb49222c2f824a472b04b | |
parent | 0fc1e953351f89a52a6eaaab140729d34ca07809 (diff) | |
download | unitd-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.c | 2 |
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 * |