Re: Why does /etc/rc.d/rc work the way it does?

From: John Hasler (john_at_dhh.gt.org)
Date: 01/20/04


Date: Tue, 20 Jan 2004 08:33:19 -0600

Chris Simmons writes:
> This is what I thought *should* happen, but the /etc/rc.d/rc script seems
> to want to kill the scripts from the new level, then start the same
> scripts. I would think this would leave services from the old level
> started.

Conceptually all the kill links in the new level are executed followed by
all the start scripts. As an optimization the Debian rc script doesn't
run start links for services that were running in the previous level and
weren't stopped in the new one. In most cases it is silly for a service to
have both kill and start links in the same level.

-- 
John Hasler
john@dhh.gt.org
Dancing Horse Hill
Elmwood, Wisconsin


Relevant Pages