[erlang-questions] crazy thoughts: inittab and erl node
Jim Thompson
jim@REDACTED
Tue May 8 16:42:51 CEST 2007
Toby Thain wrote:
>> If you did this, how would you configure networking, perform filesystem
>> checks, etc?
>
> That all happens before init is started.
No, it doesn't.
Certainly some kernels can configure networking during startup, but most
do not, leaving the job to the various 'run levels' (really'rc' shell
scripts), which in-turn, (typically) run shell scripts to accomplish
these tasks.
jim@REDACTED:~$ uname -a
Linux he-colo.netgate.com 2.4.26 #3 SMP Thu Jul 15 20:01:46 PDT 2004
i686 GNU/Linux
jim@REDACTED:~$ grep rc /etc/inittab si::sysinit:/etc/init.d/rcS
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
jim@REDACTED:~$ egrep -ilr ifup\|ifdown /etc/rc*
/etc/rc0.d/S35networking
/etc/rc6.d/S35networking
/etc/rcS.d/S39ifupdown
/etc/rcS.d/S40networking
/etc/rcS.d/S18ifupdown-clean
jim@REDACTED:~$
... started by init.
While this was linux, freebsd (and the other BSDs) are largely the same.
> uname -a
FreeBSD freebsd.netgate.com 6.0-RC1 FreeBSD 6.0-RC1 #0: Thu Oct 20
00:50:53 PDT 2005
jim@REDACTED:/usr/obj/usr/src/sys/GENERIC i386
> grep /etc/rc.d /etc/rc
files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null`
> egrep -l ifconfig\|fsck /etc/rc.d/*
/etc/rc.d/atm1
/etc/rc.d/bgfsck
/etc/rc.d/dhclient
/etc/rc.d/early.sh
/etc/rc.d/fsck
/etc/rc.d/ip6addrctl
/etc/rc.d/netif
/etc/rc.d/network_ipv6
/etc/rc.d/pflog
/etc/rc.d/pfsync
/etc/rc.d/root
/etc/rc.d/rtadvd
/etc/rc.d/sppp
>
More information about the erlang-questions
mailing list