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

Re: Dienste in Runlevel aufnehmen und wieder entfernen



On Wed, Jan 14, 2009 at 05:30:33PM +0100, Christian Hoeller wrote:
> >> System administrators are not encouraged to  use  update-rc.d  to  
> >> manage runlevels. They should edit the links directly or use 
> >> runlevel editors such as sysv-rc-conf and bum instead
> 
> > So ist das. Es gibt leider auch keinen Weg, ein installiertes Paket
> > dauerhaft *nicht* in den Runleveln starten zu lassen. Bei jedem Upgrade
> > wird der manuell gelöschte Link in /etc/rc?.d wieder angelegt...
> 
> Doch, mit *sysv-rc-conf* ist es eben möglich, Änderungen bei einem
> upgrade zu umgehen.  Oder irre ich mich jetzt beim *nicht* starten 
> lassen? 
Es geht auch direkt mit update-rc.d (siehe man-page in lenny):

A common system administration error is to delete the links with the
thought that this will "disable" the  service,  i.e.,  that this will
prevent  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.

Es sollte also funktionieren, wenn du statt den Start-Links
/etc/rc?.d/S* die entsprechenden Kill-Links /etc/rc?.d/K* anlegest - das
müssen die postinst-Skripte bei einem Upgrade berücksichtigen

Axel


Reply to: