[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dienst permanent abschalten mit insserv



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 will pre‐
       vent the service from being started.  However, if all links  have  been
       deleted  then  the  next  time  the  package is upgraded, the package’s
       postinst script will run update-rc.d  again  and  this  will  reinstall
       links  at  their factory default locations.  The correct way to disable
       services is to configure the service as stopped  in  all  runlevels  in
       which it is started by default.  In the System V init system this means
       renaming the service’s symbolic links from S to K.


Siehe auch Thread "Dienste in Runvlevel aufnehmen und wieder entfernen"
vom 14. Jänner 2009.

http://lists.debian.org/debian-user-german/2009/01/msg00667.html

>
> Ich stellte auf insserv um, da ich dachte, Debian wechselt da noch bis
> Lenny hin. Das ist dann doch nicht geschehen. Vielleicht sollte ich
> vorsichtiger werden mit dem Ausprobieren von "Innovationen".
>
> Ciao,
> --
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de

lg Bernhard



-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html


Reply to: