diff options
author | John Crispin <blogic@openwrt.org> | 2013-09-04 16:56:24 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-13 17:35:55 +0200 |
commit | 8183146ad8c706c33465fbef926f5d6e971da625 (patch) | |
tree | ea1247c66c7da4c6e9e6b791bbac98cc29f943f1 | |
parent | 8716a453c6f6d0d6ac5be70497e5cebeba2fc36a (diff) | |
download | unitd-8183146ad8c706c33465fbef926f5d6e971da625.tar unitd-8183146ad8c706c33465fbef926f5d6e971da625.zip |
execute the "running" hook once the daemon is started
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | service.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |