Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
runlevels not hierarchical?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
wyrickre
n00b
n00b


Joined: 10 Jul 2002
Posts: 27
Location: Colorado Springs, CO

PostPosted: Thu Jul 11, 2002 5:00 pm    Post subject: runlevels not hierarchical? Reply with quote

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
View user's profile Send private message
rojaro
l33t
l33t


Joined: 06 May 2002
Posts: 732

PostPosted: Thu Jul 11, 2002 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Jul 11, 2002 5:18 pm    Post subject: Reply with quote

rojaro wrote:
read the Gentoo Linux 1.0 Init System documentation :)


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
View user's profile Send private message
wyrickre
n00b
n00b


Joined: 10 Jul 2002
Posts: 27
Location: Colorado Springs, CO

PostPosted: Thu Jul 11, 2002 6:22 pm    Post subject: Reply with quote

rojaro wrote:
read the Gentoo Linux 1.0 Init System documentation :)


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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Jul 11, 2002 6:40 pm    Post subject: Reply with quote

moving this to gentoo suggestions.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Thu Jul 11, 2002 7:32 pm    Post subject: Re: runlevels not hierarchical? Reply with quote

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
View user's profile Send private message
wyrickre
n00b
n00b


Joined: 10 Jul 2002
Posts: 27
Location: Colorado Springs, CO

PostPosted: Thu Jul 11, 2002 10:15 pm    Post subject: Re: runlevels not hierarchical? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum