gentoo에서 runlevel의 실행 순서 조정은?

mr.lee의 이미지

gentoo에서 부팅시 오더링이 어떻게 되는건가요?
env.d 에선 %d.. 로 되어서 오더링이 되는것 같은데,
정작, runlevels/boot나 runlevels/default 내에선 그냥 파일명으로만 init.d 아래 파일들이 심볼릭 걸려 있는데 오더링을 어떻게 조절하는건지..
물론, boot가 default보다 먼저 시작되긴 하겠지만요.

즉, 환경설정을 갖고 있는 env.d에선 오히려 오더링이 가능하게 숫자가 앞에 먼저 나오는데 정작 오더링이 가능해야 할 runlevels아래에선 숫자로 시작하지 않는데 왜 그런건지요.

마잇의 이미지

Init Scripts
 
Now init doesn't just execute the scripts in /etc/init.d randomly. Even more, it doesn't run all scripts in /etc/init.d, only the scripts it is told to execute. It decides which scripts to execute by looking into /etc/runlevels.
 
First, init runs all scripts from /etc/init.d that have symbolic links inside /etc/runlevels/boot. Usually, it will start the scripts in alphabetical order, but some scripts have dependency information in them, telling the system that another script must be run before they can be started.
 
When all /etc/runlevels/boot referenced scripts are executed, init continues with running the scripts that have a symbolic link to them in /etc/runlevels/default. Again, it will use the alphabetical order to decide what script to run first, unless a script has dependency information in it, in which case the order is changed to provide a valid start-up sequence. 

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4

기본적으로 알파벳 순서로 실행하고 각 실행 스크립트 내부를 보시면 의존 관계가 설정 되어 있습니다. 그를 토대로 순서가 결정됩니다.

--
마잇


--
마잇