[arch-projects] [initscripts][RFC] deprecating ck_depends
seblu at seblu.net
Thu Jun 23 17:13:55 EDT 2011
On Thu, Jun 23, 2011 at 5:37 PM, Tom Gundersen <teg at jklm.no> wrote:
> Hi guys,
> I'm trying to resolve FS#20903, and I think the only sensible solution is to
> stop using the ck_depends function. I'd like to hear your opinion on this.
> This is the situation:
> ck_depends was introduced in
> as a simple mechanism to implement dependencies.
> What it does, is that it allows an rc script to start other rc scripts.
> However, it is not equivalent to adding the depedent rc scripts to the DAEMONS
> array. The problem is that at shutdown, we have no record of when the
> dependencies were started, and therefore treat them as if they were started by
> the user during runtime.
> The end result is that the dependencies of a daemon are started before the
> daemon (as expected), but also stopped before the daemon (contrary to the
> I don't think parsing the rc scripts at shutdown to figure out the dependencies
> could work, nor do I think it is in the spirit of our initscripts. The only
> correct solution (IMHO) to resolve a dependency is to ask the user to add the
> relevant daemon to the DAEMONS array.
> I therefore suggest marking ck_depends as deprecated, and print a warning
> whenever it is used.
> Did I miss something? Any opinions?
I agree. This should be removed. I didn't even know it existed on arch.
I think we should not handle dependancy between daemons. Let sysadmin,
customize its arch.
More information about the arch-projects