add an event for "service.update" triggers
authorJohn Crispin <blogic@openwrt.org>
Wed, 27 Aug 2014 08:55:00 +0000 (10:55 +0200)
committerJohn Crispin <blogic@openwrt.org>
Fri, 29 Aug 2014 14:14:57 +0000 (16:14 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
service/service.c

index bde2165638791c8633c07e41b4fa0191e57f2b52..a0fa2d507f375de2e3a0c3b7f7d34fb83cc7120a 100644 (file)
@@ -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 *