diff options
author | Roy Marples <roy@marples.name> | 2009-04-28 08:29:02 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-28 08:29:02 +0000 |
commit | e0f0fc8046bed6d21a92d0ef6f708d3ce5ef5c1c (patch) | |
tree | caaa973110e22d91e794f99365d9c5cf09fdc43a /src/rc | |
parent | 48f477f851d6ac0a1867ff6b405bbdfae401b0d2 (diff) |
Don't start services when their need dependency is broken
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/runscript.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |