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

Bug#379001: debian-policy: update-rc.d overrides sysadmins wishes



On Thu, Jul 20, 2006, Adrian Bridgett wrote:
> The policy says that postinst should run "update-rc.d ... defaults",
> however this means that symlinks are reverted back upon all upgrades.
> 
> I have a large number of packages installed for testing, but I do not
> want them started by default.  In some cases I could edit
> /etc/defaults/package and set them to disabled there.
> 
> I think update-rc.d defaults should only be called on a fresh install,
> not an upgrade.

 From update-rc.d(8):
   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.

 Does that solve your bug?

-- 
Loïc Minier <lool@dooz.org>



Reply to: