[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error in Debian Policy Manual



Dan Smowak <dsmowak@ymail.com> writes:

> I've read this chapter from Debian Policy Manual:
> 9.3 System run levels and init.d scripts
>
> and found this:
> "For example, if we are changing from runlevel 2 to runlevel 3, init
> will first execute all of the K prefixed scripts it finds in /etc/rc3.d,
> and then all of the S prefixed scripts in that directory. The links
> starting with K will cause the referred-to file to be executed with
> an argument of stop, and the S links with an argument of start."
> -----------------------------------
>
> I think that the correct description should be:
> ...will first execute all of the K prefixed scripts it finds in /etc/rc2.d...
> -----------------------------------
>
> I think so because init need first stop all services running in current (2)
> runlevel.

No, I'm fairly sure that the current language describes what actually
happens.  Each run level specifies the services to stop when switching
to that run level.

You don't want to stop services that run in both level 2 and level 3
when switching from 2 to 3.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: