summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-01 22:08:01 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-01 22:08:01 +0200
commit24e61ac49db6add10ffa448f42202245fb883b96 (patch)
treee60ce2728020f647846ae19fa11f684cff34583b
parentbd77d0fccccb7c94d1dd52d2e535feb7156e3220 (diff)
service: don't continue looking for syv init scripts after the first failure
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index 1aeb5fbf2b..8018bd847c 100644
--- a/service.c
+++ b/service.c
@@ -510,7 +510,7 @@ static int service_load_sysv_name(Service *s, const char *name) {
r = service_load_sysv_path(s, path);
free(path);
- if (r >= 0)
+ if (r != 0)
return r;
}