service: don't continue looking for syv init scripts after the first failure

This commit is contained in:
Lennart Poettering 2010-04-01 22:08:01 +02:00
parent bd77d0fccc
commit 24e61ac49d

View file

@ -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;
}