From: Lennart Poettering Date: Sat, 10 Apr 2010 03:05:05 +0000 (+0200) Subject: service: don't necessarily add ordering links for non-sysv services X-Git-Tag: 0.git+20100605+dfd8ee-1~176 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a1a79d3fbb23cfb4ce07ea218e77efbce94cdd;p=systemd service: don't necessarily add ordering links for non-sysv services --- diff --git a/service.c b/service.c index c914ecac..e5a9658b 100644 --- a/service.c +++ b/service.c @@ -157,7 +157,10 @@ static int sysv_chkconfig_order(Service *s) { if (t->sysv_start_priority < 0) continue; - if (s->sysv_has_lsb && t->sysv_has_lsb) + /* If both units have modern headers we don't care + * about the priorities */ + if ((!s->sysv_path || s->sysv_has_lsb) && + (!t->sysv_path || t->sysv_has_lsb)) continue; if (t->sysv_start_priority < s->sysv_start_priority)