chiark / gitweb /
sysv-generator: initialize units before use to ensure correct ordering
authorMichael Biebl <biebl@debian.org>
Fri, 28 Nov 2014 05:04:48 +0000 (06:04 +0100)
committerMichael Biebl <biebl@debian.org>
Wed, 7 Jan 2015 18:08:58 +0000 (19:08 +0100)
The original loop called fix_order() on each service immediately after
loading it, but fix_order() would reference other units which were not
loaded yet.
This resulted in bogus and unnecessary orderings based on the static
start priorities.

Therefore call load_sysv() for every init script when traversing them in
enumerate_sysv(). This ensures that all units are loaded when
fix_order() is called.

Bug-Debian: https://bugs.debian.org/771118


No differences found