X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service.c;h=29acc57eef7ff20760864c4a06d07a3a000642cd;hp=7776f9973743a2e1b89b9d03cc1df854fb8968fd;hb=b5e17105b163442a030559b7b2c2454b82b3fd4c;hpb=72c21573149f77c4afa41afb0f5216c2ab1555ea diff --git a/service.c b/service.c index 7776f99..29acc57 100644 --- a/service.c +++ b/service.c @@ -17,6 +17,7 @@ #include "procd.h" #include "service.h" #include "instance.h" +#include "rcS.h" struct avl_tree services; static struct blob_buf b; @@ -125,6 +126,8 @@ service_update(struct service *s, struct blob_attr *config, struct blob_attr **t vlist_flush(&s->instances); } + rc(s->name, "running"); + return 0; }