Package: debhelper
Version: 13.3.4
Severity: normal
Control: affects -1 slapd
Dear maintainer,
It looks like if I currently use dh_installinit --restart-after-upgrade
(the default), and in a newer version I change it to use
--no-restart-after-upgrade, then when I upgrade to that newer version,
the service is not restarted and the old version is still running.
I think this happens because the stop call is added to prerm, but on
upgrade it is the *old* prerm that runs, not the new one.
I did not test dh_installsystemd, but it looks like it would have the
same issue.
The concrete case I have at hand is src:openldap. In bullseye it runs
dh_installinit with no options, so slapd restarts after upgrade. For
bookworm I will certainly need to stop slapd before upgrading it.
Thank you,
Ryan