diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-10 05:05:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-10 18:00:21 +0200 |
commit | 51a1a79d3fbb23cfb4ce07ea218e77efbce94cdd (patch) | |
tree | 81fd59b3280097d270b1f0dab37be2a1aa725fbc | |
parent | 9fb867204f3f7a1107f4a4d27d8003c093a05139 (diff) |
service: don't necessarily add ordering links for non-sysv services
-rw-r--r-- | service.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |