From: Lennart Poettering Date: Thu, 1 Apr 2010 20:08:01 +0000 (+0200) Subject: service: don't continue looking for syv init scripts after the first failure X-Git-Tag: 0.git+20100605+dfd8ee-1~275 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e61ac49db6add10ffa448f42202245fb883b96;p=systemd service: don't continue looking for syv init scripts after the first failure --- diff --git a/service.c b/service.c index 1aeb5fbf..8018bd84 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; }