On Mon, 28 Mar 2005 18:03:34 +0100, Digby Tarvin <[EMAIL PROTECTED]> wrote:
> 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...

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.

> 
> 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. The documenation at: 
http://www.gentoo.org/doc/en/handbook/handbook-hppa.xml?part=2&chap=4
seems to indicate that it's a runtime thing (when you execute 'stop',
it'll also stop all the services that depend on that one init-script).

> 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).

-Hani
--
gentoo-user@gentoo.org mailing list

Reply via email to