[H-GEN] Boot Up sequence
Geoffrey D. Bennett
g at netcraft.com.au
Fri Sep 26 03:50:00 EDT 1997
> > I disagree. (I'm good at that :). K means that you want the program
> > stopped when going into that runlevel, but there is no point in trying
> > to stop it running every time you go into runlevel 3 when it wasn't
> > running in the first place.
>
> You're going to hate me.
Nahhh... I'll just disagree again :).
> I disagree. I've been reading a few docs, none of which give any
> definitive answer to this question.... it seems to me though, that Sys V
> init is defined in terms of the services operating in each runlevel. For
> this interface to be consistant, everthing that is considered a "service"
> should have a defined on or off value for each runlevel. Deleting a link
> indicates an undefined state for this service, which is ugly.
This isn't correct. An absent link indicates "no change" for that
service. It is not undefined. Red Hat's tksysv runlevel editor
thinks it's an okay thing to do too.
What about the "halt", "single", and "reboot" services that are
started in init states 0, 1, and 6 respectively? Are you proposing to
add "K" links for them in states 2, 3, and 5?
Let me expand my previous notes on the matter:
If someone wants to completely prevent a service being started in any
runlevel, they need to remove all the "S" links in the rc?.d
directories. They should also remove all the "K" links because if the
service is never started it will never need to be stopped. There is
no point having "K" links in all the rc?.d directories.
OTOH, if someone wants to have a service that is started in one
runlevel but not another then they should do what you suggested
(change the "S" link to a "K" link), otherwise if they switch
runlevels after boot-time, the service won't be stopped.
It all depends on whether you don't want the service running in a
particular runlevel or whether you don't want the service running at
all (and it was the latter which I think the original question was
about).
Regards,
--
Geoffrey D. Bennett (geoffrey at netcraft.com.au)
Computer Systems Manager, NetCraft Australia
http://www.netcraft.com.au/geoffrey/
Red Hat Linux Resellers: http://www.netcraft.com.au/redhat/
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list