projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fc1e95
)
add an event for "service.update" triggers
author
John Crispin
<blogic@openwrt.org>
Wed, 27 Aug 2014 08:55:00 +0000
(10:55 +0200)
committer
John 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
patch
|
blob
|
history
diff --git
a/service/service.c
b/service/service.c
index
bde2165
..
a0fa2d5
100644
(file)
--- 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);
}
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 *