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

Bug#3215: `update-rc.d remove' doesn't remove /etc/init.d script



Package: dpkg
Version: 1.2.3elf

According to the update-rc.d(8) man page:

  REMOVING SCRIPTS
         When invoked with the remove option,  update-rc.d  removes
         the  script and links to the script for the package <base-
         name>.   It  first  finds  and  removes  the   script   in
         /etc/init.d/  and  then removes all links to the script in
         /etc/rc[0123456].d/.

But:

  deimos:proj/debian/sendmail:[11]# update-rc.d sendmail remove
  update-rc.d: error: /etc/init.d/sendmail exists during rc.d purge.
  zsh: 1034 exit 1     update-rc.d sendmail remove

I wanted to use `update-rc.d sendmail remove' from sendmail's preinst, since
calling `update-rc.d sendmail defaults' won't renumber the links if they are
already present in the /etc/rc?.d directories. Do I need to remove the script
from /etc/init.d first myself, or shouldn't update-rc.d handle it?

--
Robert Leslie
rob@mars.org


Reply to: