Le 09-04-2006, Ming Chen <tomingchen@xxxxxxxxx> a écrit : > ------=_Part_6900_9894838.1144607669995 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > Hi, > > I've a general question on system init: > As an example in init.d/autofs, why autofs needs to be started in multiple > run level ? > I thought application daemon only need to be started once in the whole > system. > > Thanks, > Ming > > [root@Fedora2 rc.d]# find . -print | grep autofs > ./rc4.d/S28autofs > ./init.d/autofs > ./rc2.d/K72autofs > ./rc3.d/S28autofs > ./rc1.d/K72autofs > ./rc5.d/S28autofs > ./rc0.d/K72autofs > ./rc6.d/K72autofs It's not a kernel question but I'll answer it :) You have not understoot the system init mechanism. The linux system has 7 init level (0 and 6 are halt and reboot). If the init level of your linux is 3, sysinit will check all the scripts in rc3.d/ and start all the S* script. But you can change the init level (from 3 to 4 for example). And then, the sysinit dameon will look at the scripts in rc4.d directory. That's why you have several scripts. But the autofs stuff is only launched once. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/