Bug#995006: init-system-helpers: deb-systemd-helper does not call daemon-reload despite unit files were changed

Michael Biebl biebl at debian.org
Fri Sep 24 17:58:13 BST 2021


Am 24.09.2021 um 18:22 schrieb Vasyl Gello:
> Package: init-system-helpers
> Version: 1.60
> Severity: important
> X-Debbugs-Cc: mattia at debian.org, mbiebl at 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



More information about the Pkg-systemd-maintainers mailing list