]> err.no Git - systemd/commitdiff
service: don't continue looking for syv init scripts after the first failure
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Apr 2010 20:08:01 +0000 (22:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Apr 2010 20:08:01 +0000 (22:08 +0200)
service.c

index 1aeb5fbf2b637cec04661b081500db891f8bc26e..8018bd847cbfe6b7c7c2f65f7c73876b07588d9f 100644 (file)
--- 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;
         }