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

Re: How to properly remove obsolete init script?



Am 04.05.2016 um 01:21 schrieb Iustin Pop:
> Hi and sorry for what is a basic question, but I can't find a clear
> answer.
> 
> It seems that dpkg-maintscript-helper is the tool to remove conffiles,
> but it doesn't seem to have any special handling for init scripts. Which
> means that simply calling "rm_conffile …" will just remove the
> /etc/init.d/ script, leaving potential symlinks in /etc/rc?.d around.
> 
> The snippets inserted by dh_installinit in postrm will only call
> "update-rc.d xxx remove" in case of purge, so they won't be called
> during a package upgrade.
> 
> Any smarter solution than just adding code to postinst/configure with
> the old version to call update-rc.d remove?

There isn't really. So you'll have to do the cleanup manually.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: