Package: debhelper
Version: 13.7.1
Control: affects -1 slapd

Hi Niels, hi Dave (in X-D-CC),

In #994204, Dave wrote:

I think it may be preferable to instead move the stop behaviour to the "preinst" script of the *new* version of the package so that both stop and start behaviours are encapsulated in a *single* version of the package (and hence can be freely moved between). This also means that "postinst" script's prior behaviour can be restored.

There's one issue with this: dpkg-reconfigure. It runs these scripts:

1. prerm upgrade
2. config reconfigure
3. postinst configure

The autoscripts now stop the service in "prerm remove" and "preinst upgrade". Unfortunately this means dpkg-reconfigure no longer restarts the service and the config changes are not applied.

I don't know what to suggest. I like Dave's solution for upgrades. Maybe dpkg-reconfigure should also run "preinst upgrade"? but I'm reluctant to suggest any change there, since its current behaviour has been stable for almost 20 years...

thanks,
Ryan

Reply via email to