Lorsqu'un paquet contenant un service s'installe, il crée les liens
dans /etc/rc?.d/ avec le numéro d'ordre "qui va bien" pour démarrer ou
stopper le service dans les différents runlevels.
J'utilise sysv-rc-conf pour choisir ce qui doit démarrer ou non. Mais
après quelques changements, je me suis aperçu qu'il avait modifier les
numéros d'ordre pour certains services et qu'il avait ajouter des K*
dans tout les runlevels pour un service lié dans /etc/rcS.d. C'est donc
génant d'avoir un service qui s'allume pour s'éteindre.
Comme c'est un peu le désordre maintenant dans mon /etc/rc?.d,
j'aimerai restaurer l'organisation d'origine, créée lors de
l'installation de chaque paquet.
J'ai pensé réinstaller tous les paquets, mais je me dis qu'il existe
sûrement une solution plus propre. Et un
for i in /etc/init.d/*(*) ; do update-rc.d "$i" defaults ; done
me remet tout à S20 et K20, c'est bête.
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Rakotomandimby (R12y) Mihamina
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La section 9.3.3.1 parle de ton probleme ("tres" vaguement)
sinon, 'man 8 update-rc.d' donne :
[...] If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and stop the service in runlevels 016. By default all the links will have sequence code 20, but this can be overridden by supplying one or two NN arguments; one argument overrides the sequence code for both start and stop links whereas of two arguments the first overrides the code for start links and the second that for stop links. [...]
Si tu as les man en Francais, ca devrait mieux te causer. Tu as maintenant de quoi chercher...
-- ASPO Infogérance - http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc - http://faq.fcolc.eu.org/ Linux User Group sur Orléans et alentours. Tél: + 33 2 38 76 43 65 (France)
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La
section 9.3.3.1 parle de ton probleme ("tres" vaguement)
sinon,
'man 8 update-rc.d' donne :
[...]
If defaults is used then update-rc.d will make links to start the
service in runlevels 2345 and stop the service in runlevels
016. By default all the links will have sequence code 20, but this
can be overridden by supplying one or two NN arguments; one
argument overrides the sequence code for both start and stop
links whereas of two arguments the first overrides the code for
start links and the second that for stop links.
[...]
Si tu as les man en Francais, ca devrait mieux te causer.
Tu as maintenant de quoi chercher...
--
ASPO Infogérance - http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc - http://faq.fcolc.eu.org/
Linux User Group sur Orléans et alentours.
Tél: + 33 2 38 76 43 65 (France)
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La section 9.3.3.1 parle de ton probleme ("tres" vaguement)
sinon, 'man 8 update-rc.d' donne :
[...] If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and stop the service in runlevels 016. By default all the links will have sequence code 20, but this can be overridden by supplying one or two NN arguments; one argument overrides the sequence code for both start and stop links whereas of two arguments the first overrides the code for start links and the second that for stop links. [...]
Si tu as les man en Francais, ca devrait mieux te causer. Tu as maintenant de quoi chercher...
-- ASPO Infogérance - http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc - http://faq.fcolc.eu.org/ Linux User Group sur Orléans et alentours. Tél: + 33 2 38 76 43 65 (France)
David LE BOURGEOIS
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
Si je fais cela avec tous les services, je vais me retrouver avec des problèmes de dépendances. Par exemple : montage de lien NFS avant le démarrage du réseau.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La section 9.3.3.1 parle de ton probleme ("tres" vaguement)
Oui, très vaguement en effet.
sinon, 'man 8 update-rc.d' donne :
[...] If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and stop the service in runlevels 016. By default all the links will have sequence code 20, but this can be overridden by supplying one or two NN arguments; one argument overrides the sequence code for both start and stop links whereas of two arguments the first overrides the code for start links and the second that for stop links. [...]
Si tu as les man en Francais, ca devrait mieux te causer. Tu as maintenant de quoi chercher...
Merci pour ces liens vers de la documentation supplémentaire.
-- David LE BOURGEOIS
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
Si je fais cela avec tous les services, je vais me retrouver avec des
problèmes de dépendances. Par exemple : montage de lien NFS avant le
démarrage du réseau.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La
section 9.3.3.1 parle de ton probleme ("tres" vaguement)
Oui, très vaguement en effet.
sinon,
'man 8 update-rc.d' donne :
[...]
If defaults is used then update-rc.d will make links to start the
service in runlevels 2345 and stop the service in runlevels
016. By default all the links will have sequence code 20, but this
can be overridden by supplying one or two NN arguments; one
argument overrides the sequence code for both start and stop
links whereas of two arguments the first overrides the code for
start links and the second that for stop links.
[...]
Si tu as les man en Francais, ca devrait mieux te causer.
Tu as maintenant de quoi chercher...
Merci pour ces liens vers de la documentation supplémentaire.
( Fri, 10 Dec 2004 21:17:41 +0100 ) David LE BOURGEOIS :
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Le fait qu'ils soient tous a 20 semble le default behaviour.
Si je fais cela avec tous les services, je vais me retrouver avec des problèmes de dépendances. Par exemple : montage de lien NFS avant le démarrage du réseau.
http://debid.vlsm.org/share/Debian-Doc/debian-policy/ch-opersys.html La section 9.3.3.1 parle de ton probleme ("tres" vaguement)
Oui, très vaguement en effet.
sinon, 'man 8 update-rc.d' donne :
[...] If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and stop the service in runlevels 016. By default all the links will have sequence code 20, but this can be overridden by supplying one or two NN arguments; one argument overrides the sequence code for both start and stop links whereas of two arguments the first overrides the code for start links and the second that for stop links. [...]
Si tu as les man en Francais, ca devrait mieux te causer. Tu as maintenant de quoi chercher...
Merci pour ces liens vers de la documentation supplémentaire.
-- David LE BOURGEOIS
David LE BOURGEOIS
Est-ce qu'il existe donc un moyen de restaurer tout ça ?
Je pense avoir trouvé quelque chose du côté des postinst :