Désactiver un service au démarrage

Salut à ceux dont je n’aurais pas encore “vu” aujourd’hui :mrgreen:

Voilà, je voudrais désactiver un service au lancement de ma Debian sid

J’ai vu sur un site cette commande update-rc.d -f 'service' remove

Puis je m’y fier??

Merci d’avance :wink:

Pour désactiver citadel par exemple:
S20citadel —> s20citadel dans /etc/rc?.d mais je ne sais plus quel rc…
edit: rc2 je crois

[quote=“M3t4linux”]Salut à ceux dont je n’aurais pas encore “vu” aujourd’hui :mrgreen:

Voilà, je voudrais désactiver un service au lancement de ma Debian sid

J’ai vu sur un site cette commande update-rc.d -f 'service' remove

Puis je m’y fier??

Merci d’avance :wink:[/quote]
Oui, le -f permet de supprimer un service même si le fichier /etc/init.d/service existe. Les «’» sont superflus.

Merci pour vos réponses/confirmations messieurs!!

A contrario, pour réactiver un service?? invoke-rc.d :question:

J’ai volontairement ajouter les <<’>>, pour mettre en évidence qu’il fallait mettre le nom du service :wink:

Salut voici un exemple que j’ai exécuté il y a deux jours :

Enlever le service :

laurent@spider:~$ sudo update-rc.d -f bluetooth remove Removing any system startup links for /etc/init.d/bluetooth ... /etc/rc0.d/K74bluetooth /etc/rc1.d/K74bluetooth /etc/rc2.d/S99bluetooth /etc/rc3.d/S99bluetooth /etc/rc5.d/S99bluetooth /etc/rc6.d/K74bluetooth
Le remettre (avec une priorité plus grande (20 au lieu de 47)

laurent@spider:~$ sudo update-rc.d bluetooth start 20 2 3 4 5 . stop 20 0 1 6 . Adding system startup for /etc/init.d/bluetooth ... /etc/rc0.d/K20bluetooth -> ../init.d/bluetooth /etc/rc1.d/K20bluetooth -> ../init.d/bluetooth /etc/rc6.d/K20bluetooth -> ../init.d/bluetooth /etc/rc2.d/S20bluetooth -> ../init.d/bluetooth /etc/rc3.d/S20bluetooth -> ../init.d/bluetooth /etc/rc4.d/S20bluetooth -> ../init.d/bluetooth /etc/rc5.d/S20bluetooth -> ../init.d/bluetooth
Sinon (sudo update-rc.d bluetooth defaults) pour les options par défaut - Voir man update-rc.d ! :wink:

Merci à vous

Je clos le post :smt006