On Fri, 10 Dec 2010, Petter Reinholdtsen wrote:
> [Don Armstrong]
> > What's the reasoning behind disallowing multiple packages to provide
> > the same service, anyway?
>
> At the moment bogus ordering is created when several scripts provide
> the same facility. To avoid this such setup is rejected with an
> error.
That sounds like a bug that should be fixed, especially in the case
where scripts all have the same dependencies and don't introduce
circular dependencies.
The fix could even be fairly simple, with no changes to the dependency
resolver:
given repeated provides A in n init scripts, replace the Provides A
from each script with A1...An, and replace the instances of A in
*{Start,Stop}* with all of A1...An
That is, given init script D, E, F with: D=Provides: A, E=Provides: A,
and F=Start-Before: A, the internal representation becomes:
D=Provides: A1, E=Provides: A2, F=Start-Before: A1 A2.
> I proposed allowing scripts to provide virtual facilities directly in
> the script to the upstream developer, see
> <URL: http://thread.gmane.org/gmane.comp.init.sysv.devel/66 > for his
> reply.
Unless I'm missing something, the reply still doesn't answer the core
bit of the question you asked. Was there a further reply that didn't
make it to gmane?
Don Armstrong
--
Leukocyte... I am your father.
-- R. Stevens http://www.dieselsweeties.com/archive.php?s=1546
http://www.donarmstrong.com http://rzlab.ucr.edu
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]