From: John Crispin Date: Wed, 27 Aug 2014 08:55:00 +0000 (+0200) Subject: add an event for "service.update" triggers X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a396e6d88946a7009d41315bdeea54da42b27d39;p=oweals%2Fprocd.git add an event for "service.update" triggers Signed-off-by: John Crispin --- 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 *