Comment 2 for bug 1828992

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Who is up?:
Install-Remove timesyncd - ok
Install chrony - ok
Install-Purge-Install chrony - ok
Install-Remove-Install-Reinstall chrony - ok
Install-Remove-Install - timesyncd ??

Ha that is another weird interaction.
Not a bug in our postrm fix for timesyncd/chrony but related.
I removed our postrm change and it stays as-is.

Per https://wiki.debian.org/MaintainerScripts section "Installing from '''Config-Files''' state".
The postinst will call:
  invoke-rc.d chrony restart
And if you run the same after the install it will correctly make chrony run and timesyncd stop.

But in the postinst the restart is from the section of dh_installinit/11.3.2ubuntu1 which comes before the section of dh_installsystemd/11.3.2ubuntu1.
If we'd turn around the order it would work in above case as well.

OTOH I'm not sure if this is a really big issue - after what I found it might affect even more packages that have sysV AND systemd files.