From e0f0fc8046bed6d21a92d0ef6f708d3ce5ef5c1c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 28 Apr 2009 08:29:02 +0000 Subject: Don't start services when their need dependency is broken --- src/rc/runscript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rc/runscript.c') diff --git a/src/rc/runscript.c b/src/rc/runscript.c index b4ce0f88..c2688ee0 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -633,7 +633,7 @@ svc_start(bool deps) services = rc_deptree_depends(deptree, types_b, applet_list, runlevel, 0); if (TAILQ_FIRST(services)) { - eerrorn("ERROR: `%s' needs ", applet); + eerrorn("ERROR: %s needs service(s) ", applet); first = true; TAILQ_FOREACH(svc, services, entries) { if (first) @@ -642,6 +642,7 @@ svc_start(bool deps) fprintf(stderr, ", "); fprintf(stderr, "%s", svc->value); } + fprintf(stderr, "\n"); exit(EXIT_FAILURE); } rc_stringlist_free(services); -- cgit v1.2.3