View previous topic :: View next topic |
Author |
Message |
wyrickre n00b
Joined: 10 Jul 2002 Posts: 27 Location: Colorado Springs, CO
|
Posted: Thu Jul 11, 2002 5:00 pm Post subject: runlevels not hierarchical? |
|
|
As a recent convert from Mandrake, I find it frustrating that runlevels aren't hierarchical... that is, I can't define a runlevel that has everything the "default" runlevel has plus a few more things. In other words, I want to inherit from default... In other OTHER words, I want to subclass it.
I know I can do this if I explicitly define a new runlevel, then add all the stuff that default has to it... but that's not the same is true inheritance.
Did I miss something in the docs? Is this possible? Is it a good idea?
And just to throw in a thought on how this could be implemented:
Couldn't this be done by making the "subclass" a subdirectory of default (in this example)?
Thanks,
-rew |
|
Back to top |
|
|
rojaro l33t
Joined: 06 May 2002 Posts: 732
|
Posted: Thu Jul 11, 2002 5:12 pm Post subject: |
|
|
read the Gentoo Linux 1.0 Init System documentation :) _________________ A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970) |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu Jul 11, 2002 5:18 pm Post subject: |
|
|
Which won't answer his question....it says nothing in there about inheritance or hiearchies that I'm aware of.
To the original question; have you tried placing subfolders within /etc/runlevels/<your runleve> that symlinks to another runlevel? I have no idea if the init system will recurse into subdirectories on startup, but that might solve the problem if it does...
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
wyrickre n00b
Joined: 10 Jul 2002 Posts: 27 Location: Colorado Springs, CO
|
Posted: Thu Jul 11, 2002 6:22 pm Post subject: |
|
|
I have read it
And what I'm suggesting here is an enhancement to the current system that would just happen to fix my problem. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu Jul 11, 2002 6:40 pm Post subject: |
|
|
moving this to gentoo suggestions.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Thu Jul 11, 2002 7:32 pm Post subject: Re: runlevels not hierarchical? |
|
|
Hi,
I am sure you have considered this, but all you would need is a one liner script that creates symlinks in the "derived" run level directory by listing the contents of /etc/runlevels/parent_class. Alternatively, you could drop a startup script in the derived directory that basically fires off all scripts from a runlevel class it inherits.
wyrickre wrote: | As a recent convert from Mandrake, I find it frustrating that runlevels aren't hierarchical... that is, I can't define a runlevel that has everything the "default" runlevel has plus a few more things...
|
|
|
Back to top |
|
|
wyrickre n00b
Joined: 10 Jul 2002 Posts: 27 Location: Colorado Springs, CO
|
Posted: Thu Jul 11, 2002 10:15 pm Post subject: Re: runlevels not hierarchical? |
|
|
Naan Yaar wrote: | Hi,
I am sure you have considered this, but all you would need is a one liner script that creates symlinks in the "derived" run level directory by listing the contents of /etc/runlevels/parent_class. Alternatively, you could drop a startup script in the derived directory that basically fires off all scripts from a runlevel class it inherits.
|
Yes, I had considered this, but wouldn't it be nice if the rc scripts did this for us? |
|
Back to top |
|
|
|