Re: Starting services in runlevels 0 and 6
Jurij Smakov <firstname.lastname@example.org> wrote:
> On Thu, Oct 12, 2006 at 07:34:19PM -0700, Jurij Smakov wrote:
>> /etc/rc0.d/S37sendsigs (start action for this one is a no-op)
>> and similar stuff in /etc/rc6.d. I cannot find a rational explanation
>> for starting services right before shutdown. Is it intentional, or are
>> those just bugs?
> It was pointed out to me, that even the scripts starting with S are
> called with argument 'stop' for runlevels 0 and 6 by /etc/init.d/rc.
> However, the reason why it is implemented that way is still not clear.
Because the S scripts are run after the K scripts. This way it is
possible to run special scripts at very last.
Life can only be understood backwards, but it must be lived forwards.