Am 24.09.2021 um 18:22 schrieb Vasyl Gello:
Package: init-system-helpers
Version: 1.60
Severity: important
X-Debbugs-Cc: mat...@debian.org, mbi...@debian.org

Dear colleagues,

I noticed that systemd keeps older versions of unit files even after
I explicitly rebuilt the package with new contents of unitfiles.

I decided to track down the issue and found that '$changed_sth' is
set to 1 only when **links** to systemd units are somehow updated,
i.e:

     - make_systemd_links
     - remove_links
     - mask_service
     - unmask_service

Furthermore, 'dh_installsystemd' does place 'systemctl daemon-reload'
in postrm script, but relies on conditional invocation of the same
inside 'deb-systemd-helper' for postinst one.

To reproduce, you need a package installing systemd units.
First you install the package version with one contents of systemd unit,
then install another version with changed content of the same
systemd unit, and typing `systemctl status service` shows you old
configuration of service.

Please provide a minimal package/.dsc which shows the problem.

Thanks

Reply via email to