Am Donnerstag 26 Februar 2009 schrieb Bernhard Vodicka: > On Thu, Feb 26, 2009 at 5:31 PM, Martin Steigerwald <Martin@lichtvoll.de> wrote: > > Hi! > > > > Ich habe einen Samba und einen Apache2, den ich nur bei Bedarf > > starte. Vor insserv sich das Init-Skript mit rcconf permanent > > deaktivieren, so dass auch Paket-Aktualisierungen es nicht mehr > > einschalteten. > > > > Jetzt habe ich jedoch beide Systeme auf insserv umgestellt. inssrv -r > > entfernt den Dienst auch. Nur beim nächsten Paket-Update ist er > > wieder da. > > > > Irgendeine Idee? > > man update-rc.d: > > A common system administration error is to delete the links > with the thought that this will "disable" the service, i.e., that this Nun entfernt insserv -r in der Tat alle Links. shambhala:~> ls -l /etc/rc?.d/*samba* lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc0.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc1.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc2.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc3.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc4.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc5.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:24 /etc/rc6.d/K01samba -> ../init.d/samba shambhala:~> insserv -r samba [...] shambhala:~> ls -l /etc/rc?.d/*samba* zsh: no matches found: /etc/rc?.d/*samba* Ich hätte jedoch gedacht, dass es sich diese Einstellung auch für die Zukunft merkt. Gut, seis drum. Klar kann ich nun hergehen und die Links manuell von "S*" auf "K*" ändern, doch beim nächsten Durchlauf bügelt insserv da doch ohnehin wieder drüber oder nicht? Hmmm, nach intensiverem Studium der Manpage hab ich: shambhala:~> insserv samba,stop=1,2,3,4,5 [...] shambhala:~> ls -l /etc/rc?.d/*samba* lrwxrwxrwx 1 root root 15 26. Feb 19:29 /etc/rc1.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:29 /etc/rc2.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:29 /etc/rc3.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:28 /etc/rc3.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:29 /etc/rc4.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:28 /etc/rc4.d/S24samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:29 /etc/rc5.d/K01samba -> ../init.d/samba lrwxrwxrwx 1 root root 15 26. Feb 19:28 /etc/rc5.d/S24samba -> ../init.d/samba Warum insserv da aber die Startlinks nicht entfernt, verstehe ich gerade nicht. Ist jetzt erstmal nicht so wichtig, da Debian 3-5 eh nicht nutzt. Die Logik hinter den doppelten Links erschließt sich mir dennoch nicht. Sieht mir wie so ein typischer SUSE-Effekt aus ;). SCNR. (Das Tool ist ursprünglich von SUSE.) Da gäbe es noch die Möglichkeit mit einer Override-Datei... Ciao, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Attachment:
signature.asc
Description: This is a digitally signed message part.