summaryrefslogtreecommitdiffstats
path: root/service.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-10 12:55:37 +0200
committerJohn Crispin <blogic@openwrt.org>2013-07-10 12:55:37 +0200
commit4d06f2e9c8ce792ac531d29d44386c4cea9128ff (patch)
tree7699ac1771aed5394072c488124017017c3c7783 /service.c
parent35f0336c12d77226f4856d3d04415fbfee93b233 (diff)
downloadunitd-4d06f2e9c8ce792ac531d29d44386c4cea9128ff.tar
unitd-4d06f2e9c8ce792ac531d29d44386c4cea9128ff.zip
print services with no instances when verbose is set
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'service.c')
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index 4189e2d..561c76c 100644
--- a/service.c
+++ b/service.c
@@ -220,7 +220,7 @@ service_dump(struct service *s, int verbose)
struct service_instance *in;
void *c, *i;
- if (avl_is_empty(&s->instances.avl))
+ if (avl_is_empty(&s->instances.avl) && !verbose)
return;
c = blobmsg_open_table(&b, s->name);