[debhelper-devel] Bug#749400: dh_installinit: disable init scripts on removal of package

Niels Thykier niels at thykier.net
Thu Nov 26 21:43:00 UTC 2015


reopen 749400
tags 749400 moreinfo
thanks


On Mon, 26 May 2014 18:23:20 -0007 Cameron Norman
<camerontnorman at gmail.com> wrote:
> Package: debhelper
> 
> Greetings,
> 
> It would be much cleaner to disable init scripts when the package is 
> uninstalled, so that a bunch of shell scripts that just run "[ -x 
> $DAEMON ] || exit 0" are not slowing down the boot.
> 
> Additionally, this causes problems for Upstart, as the "starting" event 
> is emitted before the job can tell if its daemon is installed or not. 
> It also poses a problem for socket activation with Upstart, as the 
> upstart-socket-bridge will create the socket for the job even if the 
> daemon is not installed.
> 
> I think it would just be overall cleaner to disable the init 
> configuration on removal of the package with a "update-rc.d disable 
> $daemon".
> 
> Thank you,
> --
> Cameron Norman

Hi,

Unfortunately, our attempt to solve this bug as caused a severe
regression (please see #806276) and had to be reverted.

Apparently it is *not* safe to call "update-rc.d #SCRIPT# disable"
unconditionally.  It is not entirely clear to me why/when it would work
/ not work, so I will put this on hold until further notice.

Patches or/and more information welcome.

Thanks,
~Niels




More information about the debhelper-devel mailing list