From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <41C946D6.6050602@altlinux.com> Date: Wed, 22 Dec 2004 13:05:10 +0300 From: Anton Farygin User-Agent: Mozilla Thunderbird 1.0 (X11/20041222) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ALT Devel discussion list Subject: Re: [devel] Re: initscripts References: <41C91CB0.40209@altlinux.com> <20041222081913.GQ12749@wrars-comp.wrarsdomain> <41C93280.3010105@altlinux.com> <20041222084820.GW21009@osdn.org.ua> <41C93538.70300@altlinux.com> <20041222090155.GZ21009@osdn.org.ua> <41C93971.1040602@altlinux.com> <41C94524.2000805@altlinux.ru> In-Reply-To: <41C94524.2000805@altlinux.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 10:06:37 -0000 Archived-At: List-Archive: List-Post: Andrei Bulava wrote: > Anton Farygin пишет: > >> А вообще напрашивается что-то вроде sysinit.d, куда можно будет >> положить некое количество скриптов, необходимых для различного рода >> задач. > > > "Всё уже украдено до нас" (c) ;-) > > Смотрю на debian sarge: > > $ cat /etc/inittab |grep si: > si::sysinit:/etc/init.d/rcS > > $ cat /etc/init.d/rcS|head -10 > #! /bin/sh > # > # rcS Call all S??* scripts in /etc/rcS.d in > # numerical/alphabetical order. > # > # Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 > miquels@cistron.nl > # > > PATH=/sbin:/bin:/usr/sbin:/usr/bin > runlevel=S > > > $ cat /etc/rcS.d/README > > The scripts in this directory are executed once when booting the system, > even when booting directly into single user mode. The files are all > symbolic > links, the real files are located in /etc/init.d/ . For a more general > discussion of this technique, see /etc/init.d/README. > > The following sequence points are defined at this time: > > * After the S40 scripts have executed, all local file systems are mounted > and networking is available. All device drivers have been initialized. > > * After the S60 scripts have executed, the system clock has been set, NFS > filesystems have been mounted (unless the system depends on the > automounter, > which is started later) and the filesystems have been cleaned. > > Соответственно, в /etc/rcS.d - скрипты, которые местами подозрительно > напоминают распиленный на части наш (RH/MDK/ALT - по вкусу) > /etc/rc.d/rc.sysinit. > 2ldv: может быть сделать нам такое ? Rgds, Rider