mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
service: don't necessarily add ordering links for non-sysv services
This commit is contained in:
parent
9fb867204f
commit
51a1a79d3f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user