Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1487 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  SXX et KXX dans /etc/rc.d/rc.*

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

SXX et KXX dans /etc/rc.d/rc.*

n°701186
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 05:11:00  profilanswer
 

je viens d'installer un nouveau truc (ddclient) sur ma LFS et j'ai donc créé un bootscript pour celui-ci
 
maintenant, je dois créer les liens symboliques dans chacun des rc.* mais je me demandais comment déterminer dans lesquels on place des SXX et des DXX
 
et comment déterminer quel numéro leur mettre
 
 
merci

mood
Publicité
Posté le 02-07-2005 à 05:11:00  profilanswer
 

n°701188
jlighty
Posté le 02-07-2005 à 07:28:44  profilanswer
 

Ce n'est pas plutôt SXX et KXX
S: démarre le script
K: arrête le script  
Tous les scripts "système" doivent être exécuté en premier.
Ex: sysklogd -> S10sysklogd

n°701221
Zaib3k
Posté le 02-07-2005 à 11:52:15  profilanswer
 

ils sont executés dans l'ordre des numéros.
 
demarre le réseau avant apache, etc... apres c'est comme tu veux.


---------------
Le droit à la différence s'arrête là où ça commence à m'emmerder sérieusement.
n°701314
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 16:25:04  profilanswer
 

oups jdevais avoir la tete ailleurs en écrivant DXX :P
 
ouais je me doutais pas mal de la signification, mais jme disais quiavait p-e des standards pour certain truc, comme c'est le cas pour les uid de certains userids
 
le plus étrange c'est que mes XX de apache sont pas identique entre tous les rc
 


/etc/rc.d/rc0.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   15 Jun 22 11:33 K08fcron -> ../init.d/fcron
lrwxrwxrwx   1 root root   17 Jul  1 16:16 K25postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 24 09:53 K26mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   16 Jun 23 19:01 K28apache -> ../init.d/apache
lrwxrwxrwx   1 root root   14 Jun 22 11:22 K30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   13 Jun 22 11:30 K46ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 29 16:06 K49bind -> ../init.d/bind
lrwxrwxrwx   1 root root   17 Jun 22 05:08 K80network -> ../init.d/network
lrwxrwxrwx   1 root root   18 Jun 22 05:08 K90sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S50hotplug -> ../init.d/hotplug
lrwxrwxrwx   1 root root   21 Jun 22 05:08 S60sendsignals -> ../init.d/sendsignals
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S70mountfs -> ../init.d/mountfs
lrwxrwxrwx   1 root root   14 Jun 22 05:08 S80swap -> ../init.d/swap
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S90localnet -> ../init.d/localnet
lrwxrwxrwx   1 root root   14 Jun 22 05:08 S99halt -> ../init.d/halt
 
/etc/rc.d/rc1.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   15 Jun 22 11:33 K08fcron -> ../init.d/fcron
lrwxrwxrwx   1 root root   17 Jul  1 16:16 K25postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 24 09:53 K26mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   16 Jun 23 19:01 K28apache -> ../init.d/apache
lrwxrwxrwx   1 root root   14 Jun 22 11:22 K30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   13 Jun 22 11:30 K46ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 29 16:06 K49bind -> ../init.d/bind
lrwxrwxrwx   1 root root   17 Jun 22 05:08 K80network -> ../init.d/network
lrwxrwxrwx   1 root root   18 Jun 22 05:08 K90sysklogd -> ../init.d/sysklogd
 
/etc/rc.d/rc2.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   17 Jul  1 16:16 K25postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 24 09:53 K26mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   16 Jun 23 19:01 K28apache -> ../init.d/apache
lrwxrwxrwx   1 root root   14 Jun 22 11:22 K30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   13 Jun 22 11:30 K46ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 29 16:06 K49bind -> ../init.d/bind
lrwxrwxrwx   1 root root   17 Jun 22 05:08 K80network -> ../init.d/network
lrwxrwxrwx   1 root root   18 Jun 22 05:08 K90sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   15 Jun 22 11:33 S40fcron -> ../init.d/fcron
 
/etc/rc.d/rc3.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   18 Jun 23 17:38 S19iptables -> ../init.d/iptables
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S20network -> ../init.d/network
lrwxrwxrwx   1 root root   14 Jun 29 16:06 S22bind -> ../init.d/bind
lrwxrwxrwx   1 root root   13 Jun 22 11:30 S26ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 22 11:22 S30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   16 Jun 23 19:01 S32apache -> ../init.d/apache
lrwxrwxrwx   1 root root   15 Jun 24 09:53 S34mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   17 Jul  1 16:16 S35postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 22 11:33 S40fcron -> ../init.d/fcron
 
/etc/rc.d/rc4.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   18 Jun 23 17:38 S19iptables -> ../init.d/iptables
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S20network -> ../init.d/network
lrwxrwxrwx   1 root root   14 Jun 29 16:06 S22bind -> ../init.d/bind
lrwxrwxrwx   1 root root   13 Jun 22 11:30 S26ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 22 11:22 S30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   16 Jun 23 19:01 S32apache -> ../init.d/apache
lrwxrwxrwx   1 root root   15 Jun 24 09:53 S34mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   17 Jul  1 16:16 S35postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 22 11:33 S40fcron -> ../init.d/fcron
 
/etc/rc.d/rc5.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   18 Jun 23 17:38 S19iptables -> ../init.d/iptables
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S20network -> ../init.d/network
lrwxrwxrwx   1 root root   14 Jun 29 16:06 S22bind -> ../init.d/bind
lrwxrwxrwx   1 root root   13 Jun 22 11:30 S26ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 22 11:22 S30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   16 Jun 23 19:01 S32apache -> ../init.d/apache
lrwxrwxrwx   1 root root   15 Jun 24 09:53 S34mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   17 Jul  1 16:16 S35postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 22 11:33 S40fcron -> ../init.d/fcron
 
/etc/rc.d/rc6.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   15 Jun 22 11:33 K08fcron -> ../init.d/fcron
lrwxrwxrwx   1 root root   17 Jul  1 16:16 K25postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 24 09:53 K26mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   16 Jun 23 19:01 K28apache -> ../init.d/apache
lrwxrwxrwx   1 root root   14 Jun 22 11:22 K30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   13 Jun 22 11:30 K46ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 29 16:06 K49bind -> ../init.d/bind
lrwxrwxrwx   1 root root   17 Jun 22 05:08 K80network -> ../init.d/network
lrwxrwxrwx   1 root root   18 Jun 22 05:08 K90sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S50hotplug -> ../init.d/hotplug
lrwxrwxrwx   1 root root   21 Jun 22 05:08 S60sendsignals -> ../init.d/sendsignals
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S70mountfs -> ../init.d/mountfs
lrwxrwxrwx   1 root root   14 Jun 22 05:08 S80swap -> ../init.d/swap
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S90localnet -> ../init.d/localnet
lrwxrwxrwx   1 root root   16 Jun 22 05:08 S99reboot -> ../init.d/reboot
 
 
/etc/rc.d/rcsysinit.d:
total 8
drwxr-xr-x   2 root root 4096 Jun 22 05:08 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   21 Jun 22 05:08 S00mountkernfs -> ../init.d/mountkernfs
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S05modules -> ../init.d/modules
lrwxrwxrwx   1 root root   14 Jun 22 05:08 S10udev -> ../init.d/udev
lrwxrwxrwx   1 root root   14 Jun 22 05:08 S20swap -> ../init.d/swap
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S30checkfs -> ../init.d/checkfs
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S40mountfs -> ../init.d/mountfs
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S50cleanfs -> ../init.d/cleanfs
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S55hotplug -> ../init.d/hotplug
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S60setclock -> ../init.d/setclock
lrwxrwxrwx   1 root root   17 Jun 22 05:08 S70console -> ../init.d/console
lrwxrwxrwx   1 root root   18 Jun 22 05:08 S80localnet -> ../init.d/localnet
lrwxrwxrwx   1 root root   16 Jun 22 05:08 S90sysctl -> ../init.d/sysctl


 

n°701323
Zaib3k
Posté le 02-07-2005 à 16:40:33  profilanswer
 

tu t'en fous :D c'est l'ordre et l'existence qui compte :o


---------------
Le droit à la différence s'arrête là où ça commence à m'emmerder sérieusement.
n°701328
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 16:47:58  profilanswer
 

rc.0d/K05ddclient -> ../init.d/ddclient
rc.1d/K05ddclient -> ../init.d/ddclient
rc.2d/???ddclient -> ../init.d/ddclient
rc.3d/S45ddclient -> ../init.d/ddclient
rc.4d/S45ddclient -> ../init.d/ddclient
rc.5d/S45ddclient -> ../init.d/ddclient
rc.6d/K05ddclient -> ../init.d/ddclient


 
y'a que le 3 que je sais pas, tous sont en K sauf fcron, c'est normal?

n°701329
sebchap
Share the knowledge
Posté le 02-07-2005 à 16:50:11  profilanswer
 

Je ne sais pas si ce n'est pas specifique a debian/ubuntu mais tu as

update-rc.d ddclient default

qui devrait te permettre de creer tes liens

n°701331
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 16:51:17  profilanswer
 

ca doit etre spécifique

n°701338
sebchap
Share the knowledge
Posté le 02-07-2005 à 16:57:57  profilanswer
 

burgergold a écrit :

ca doit etre spécifique


Debian Ubuntu powaaa :o
Sinon tu as webmin, mais pareil, je cros que c'est encore specifique a debian :whistle: dsl

n°701360
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 18:35:49  profilanswer
 

webmin c'est un package quon peut installer sur n'importe quel config
 
mais jtiens pas à l'avoir, je tente d'avoir une installation minimal pour mes besoins

mood
Publicité
Posté le 02-07-2005 à 18:35:49  profilanswer
 

n°701407
Dark_Schne​ider
Close the World, Open the Net
Posté le 02-07-2005 à 20:41:18  profilanswer
 

http://www.linux-wizard.net/howto. [...] y=services
 
les numéros sont définies normallement dans le script lui-même


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°701421
burgergold
5$? va chez l'diable!
Posté le 02-07-2005 à 21:09:46  profilanswer
 

Dark_Schneider a écrit :

http://www.linux-wizard.net/howto. [...] y=services
 
les numéros sont définies normallement dans le script lui-même


 
et si c'est moi qui ait fait le script? :D
 
comme je disais, jvais placer ceci:
 
   
rc.0d/K05ddclient -> ../init.d/ddclient
rc.1d/K05ddclient -> ../init.d/ddclient
rc.2d/???ddclient -> ../init.d/ddclient
rc.3d/S45ddclient -> ../init.d/ddclient
rc.4d/S45ddclient -> ../init.d/ddclient
rc.5d/S45ddclient -> ../init.d/ddclient
rc.6d/K05ddclient -> ../init.d/ddclient
 
 
mais pour le rc.2d/, je sais pas. Tous sont en K sauf fcron et S, je comprends pas pk
 
/etc/rc.d/rc2.d:
total 8
drwxr-xr-x   2 root root 4096 Jul  1 16:16 .
drwxr-xr-x  11 root root 4096 Jun 30 17:49 ..
lrwxrwxrwx   1 root root   17 Jul  1 16:16 K25postfix -> ../init.d/postfix
lrwxrwxrwx   1 root root   15 Jun 24 09:53 K26mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root   16 Jun 23 19:01 K28apache -> ../init.d/apache
lrwxrwxrwx   1 root root   14 Jun 22 11:22 K30sshd -> ../init.d/sshd
lrwxrwxrwx   1 root root   13 Jun 22 11:30 K46ntp -> ../init.d/ntp
lrwxrwxrwx   1 root root   14 Jun 29 16:06 K49bind -> ../init.d/bind
lrwxrwxrwx   1 root root   17 Jun 22 05:08 K80network -> ../init.d/network
lrwxrwxrwx   1 root root   18 Jun 22 05:08 K90sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root   15 Jun 22 11:33 S40fcron -> ../init.d/fcron  
 
 

n°701425
sebchap
Share the knowledge
Posté le 02-07-2005 à 21:18:31  profilanswer
 

Le run-level 2 est le multiuser donc je serais toi, je ferais un SXX. D toute maniere, ca n'a pas reelement d'importance etat donné que le run-lvel exécuté apres (3 puis 5 il me semble) est correctement configuré.

n°701626
Dark_Schne​ider
Close the World, Open the Net
Posté le 03-07-2005 à 17:39:25  profilanswer
 

Burgergold> si c'est toi, alors à toi de le définir dans le script.
 
il y a un exemple dans mon lien


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°701924
matafan
Posté le 04-07-2005 à 14:49:47  profilanswer
 

Pour info Gentoo utilise un système différent : tu déclares les dépendances dans ton script rc, puis le système détermine tout seul l'ordre dans lequel les scripts doivent être exécutés. Ce qui est quand même plus simple/sûr.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  SXX et KXX dans /etc/rc.d/rc.*

 

Sujets relatifs
Plus de sujets relatifs à : SXX et KXX dans /etc/rc.d/rc.*


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR