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 bde2165..a0fa2d5 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);
        }
                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 *
 }
 
 static struct service *