> > Oh, I agree that being able to nominate a runlevel at boot time is
> > a good thing. But I think it would be more consistent to do it
> > by specifying it the same way that it is specified in inittab or
> > to telinit, and the same way it is reported by 'who -r'....
> >
> > That is, they should all use numeric runlevels, or they should all
> > use text runlevels. It is the inconsistency that I don't like...

There's nothing stopping you from renaming default to 3, etc.  If that's
what you prefer, then go ahead and have at it.  Gentoo is your friend, not
your enemy.

> I agree.  The worst part about switching from one *nix version to
> another is trying to figure out how that particular distro chose to
> implement the runlevels.

Hardly.  This is just one difference as compared to the whole /etc
structure.  Gentoo tends to nest /etc files in directories where, if you
build and install yourself, tend to have configuration files right at the
/etc level.

And when you're digging into other documentation you'll find references to
what are considered 'standard' files that aren't in the same places in
gentoo.

> > As far as the dependencies go, are you sure they are checked at
> > script execution time? Normally it would be when the script was
> > added to the runlevel that the sequencing would be done (ie in gentoo
> > when rc-update was run).
> >
> 
> I'm not sure.

It's both.  The env-update (and rc-update) rebuild the dependency cache file
which is then used at runlevel switch to ensure that the services for the
particular runlevel are up (or stopped if necessary during a runlevel
switch).

> > And I don't think just running all the scripts is enough to change
> > runlevels. Normally you have to work out the difference between the
> > old runlevel and the new, shutdown the things in the old runlevel
> > that weren't in the new, and only start the things in the new
> > runlevel that weren't in the old. That is why it is best to
> > do the change with 'telinit'.
> 
> True, when switching between runlevels, you might want some services
> to stop.  So, you'd probably need to create a more intelligent shell
> script (unless there is already a way to switch between runlevels).

It's called /sbin/rc...

Telinit & sysv runlevels are not the be-all and end-all.  That's why gentoo
(and suse as well) use different models.



--
[email protected] mailing list

Reply via email to