Summary: | sys-apps/openrc-0.11.8 - rc-update does not display orphan services which it presents in rc-update list, but which were already removed | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Sergey S. Starikoff <Ikonta> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | kingjon3377, sam, whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergey S. Starikoff
2013-05-09 05:48:56 UTC
For your information, I just found that something like this is valid to remove dangling symlinks from /etc/runlevels: rm $(find -L /etc/runlevels -type l) Given that, do you still think we should do this in OpenRC? Thanks, William William, please have a look at app-misc/ca-certificates's pkg_postinst function [1]. Maybe we can do the same in the OpenRC ebuild to inform the user about orphan services he/she should cleanup? Also, can we show such a warning every time we update the depgraph? I don't think we need support in rc-update but this would help to inform the user and would have helped with bug 490750, too. We could introduce another rc_ variable to suppress this check for people who don't want that. [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/ca-certificates/ca-certificates-20130906.ebuild?view=markup (In reply to Thomas D. from comment #2) > William, please have a look at app-misc/ca-certificates's pkg_postinst > function [1]. Maybe we can do the same in the OpenRC ebuild to inform the > user about orphan services he/she should cleanup? I have a couple of concerns about doing something like this at the ebuild level. Keep in mind that this approach doesn't help distros or users that do not use ebuilds, so Debian, Alpine and others would not be able to use it. Also, to really do this right, it would need to be a function in an eclass so that any ebuild that installs an init script could use it in pkg_postinst. It doesn't seem to be worth the effort at this level since it wouldn't benefit all of our users and would require a lot of effort across multiple ebuilds. > Also, can we show such a warning every time we update the depgraph? I don't > think we need support in rc-update but this would help to inform the user > and would have helped with bug 490750, too. > We could introduce another rc_ variable to suppress this check for people > who don't want that. At a quick glance, I have to say I'm not sure we could do this when we build the depgraph, because the depgraph building code does not seem to check the runlevels directories for any of its information. |