On Thu, 26 Sep 2002 22:47:53 +0200
joel tarlao <[EMAIL PROTECTED]> wrote:


> 
> Je viens de constater que crond et anacron sont d�coch�s chez moi, dans mcc
> Je les ai donc coch�s et ferm� mcc
> A la r�ouverture de mcc, ils sont � nouveau d�coch�s.
> J'ai r�essay� � reprises.
> 
> Y a-t'il un autre moyen simple de dire � Mdk de lancer ces d�mons au 
> d�marrage ?
> 
> -- 
>      .~.
>      /V\        Jo�l
>    //   \\ 
>   /(     )\
>     ^`~'^
> Une station de bus, c'est l� o� le bus s'arr�te,
> Une station de trains, c'est l� o� le train s'arr�te,
> Sur mon bureau, j'ai une station de travail...
> 
> 
>

peut-�tre abandonner momentan�ment les belles interfaces graphiques fort pratiques 
mais au comportement parfois d�routant (bien qu'il est possible que tu aies tent� ces 
modifications en user alors que seul root....) pour se plonger au coeur du syst�me 
comme un vulgaire neird ;)

regarde le r�pertoire /etc/rc.d. tu y trouves 8 r�pertoires:
init.d -> contient les scripts � lancer au d�marrage
rc0.d � rc6.d -> contiennent les liens vers les scripts de init.d � lancer selon le 
niveau d'initialisation. le chiffre apr�s rc correspond au niveau.
init 0 -> halt
init 1 -> single user mode
init 2 -> full user mode sans NFS
init 3 -> full user mode
init 4 -> inutilis�
init 5 -> X11
init 6 -> reboot
les liens dans ces r�pertoires sont de la forme Kxxscript ou Sxxscript
les scripts de init.d contiennent (devraient contenir!) une option start et stop. 
Kxxscript lance script avec l'option stop et Sxxscript avec l'option start. xx dans le 
nom du lien est un nombre. init ex�cute les liens par ordre alphanum�rique (�a se 
dit?) k01script avant k02script avant S99script... en somme, on arr�te d'abord et on 
d�marre ensuite dans le bon ordre.

pour en revenir � ta question, tu dois avoir dans /etc/rc.d/init.d les scripts anacron 
et crond et les liens correspondants dans /etc/rc.d/rc0.d � rc6.d. la liste doit 
donner ce qui suit � peu de choses pr�s:

-rwxr-xr-x    1 root     root   /etc/rc.d/init.d/anacron*
-rwxr-xr-x    1 root     root   /etc/rc.d/init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc0.d/K60crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc0.d/K92anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc1.d/K60crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc1.d/K92anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc2.d/S90crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc2.d/S95anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc3.d/S90crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc3.d/S95anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc4.d/S90crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc4.d/S95anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc5.d/S90crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc5.d/S95anacron -> ../init.d/anacron*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc6.d/K60crond -> ../init.d/crond*
lrwxrwxrwx    1 root     root   /etc/rc.d/rc6.d/K92anacron -> ../init.d/anacron*

donc si ces scripts sont pr�sents mais pas les liens, tu as juste � les faire en root.
une fois les modifications apport�es on relance le syst�me avec la commande:
kill -HUP 1
qui oblige init (PID 1) � relire /etc/inittab et � tout relancer (restart). pas besoin 
de reboot pour tout r�initialiser ;)

bye
jipe

Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à