[devel] Re: bootchart
Andrei Bulava
=?iso-8859-1?q?abulava_=CE=C1_altlinux=2Eru?=
Ср Дек 22 12:57:56 MSK 2004
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.
--
// AB1002-UANIC
Подробная информация о списке рассылки Devel