From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Salmon Subject: Re: significance of 2 digit number in rc.d directory. Date: Thu, 06 Jun 2002 08:44:58 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <180000.1023345898@uabs78c65> References: <3CFECF49.8010704@baywinds.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3CFECF49.8010704@baywinds.org> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin On Wednesday, June 05, 2002 07:56:09 PM -0700 Bruce Ferrell wrote: +------ | I was under the impression that the scripts executed in numerical order. | They do under Solaris anyway | | rich+ml@lclogic.com wrote: | | > There really is no significance. The scripts are executed in | > alphabetical order (somebody does "for script in S*; do exec $script | > start; done"), and the two digit sequence is a typographical convention | > to make it easy to manage that order. | > | > == Rich | > | > On Wed, 5 Jun 2002, Mohammed Khalid Ansari wrote: | | >> I have seen that the files in rc.d directory starting with either S or | >> K are followed by two digit number. I understand that S stands for | >> start and K for kill but what is the significance of the numbers that | >> followed. +-----X8 Sorry but in Solaris they execute in ascii order, the code that executes them is: for f in /etc/rc0.d/S* do if [ -s $f ] then case $f in *.sh) . $f ;; *) /sbin/sh $f start ;; esac fi done The fact that there are usually 2 digits after the S is purely a convention. /Michael -- This space intentionally left non-blank.