On Wed, Sep 3, 2014 at 2:11 PM, William Hubbs <willi...@gentoo.org> wrote:
>
> I can deprecate it. To do so, I would need to have it print out a
> deprecation warning that would be wrong for Gentoo in the next release.
>
> That warning would have to tell users to source
> /lib*/rc/sh/functions.sh.

I don't have a problem with openrc supplying an API.  However, that
API should be limited to openrc-specific functions, and it really
shouldn't be used by anything else except for stuff like
starting/stopping services, determining the runlevel, or other
openrc-ish things.  It shouldn't be used for utility functions.

It would probably make more sense to have a generic init-agnostic
Gentoo wrapper in /lib, and then have it call the appropriate
openrc/systemd/whatever functions based on how the system is
configured.

If the decision is to stick that generic Gentoo script in /etc I don't
think it is the end of the world, but it probably shouldn't be
provided by openrc.  In general we shouldn't have dependencies on an
init system unless the package is actually interacting with the init
system.

--
Rich

Reply via email to