Le dimanche 23 octobre 2016, 13 h 43 min 59 s CEST Santiago Vila a écrit :
> Aha! I can reproduce this too. On the machines where this happens,
> I believe I answered "yes" to a debconf question about restarting
> services automatically (one of the times I upgraded by hand and not
> using unattended-upgrades).
> 
> Maybe something like this would work as a workaround?
> 
> echo "libc6 libraries/restart-without-asking boolean false" | 
> debconf-set-selections
> 
> Thanks a lot.

Hi,

I think that adding this snippet to apt's debian/rules would fix this problem,
not tested tough.



override_dh_systemd_start:
        dh_systemd_start apt-daily.timer



Without this override, we get this: apt got -daily.service got "try-restart"ed
bit this statement in atp.postinst:
-------------


# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
        systemctl --system daemon-reload >/dev/null || true
        if [ -n "$2" ]; then
                _dh_action=try-restart
        else
                _dh_action=start
        fi
        deb-systemd-invoke $_dh_action apt-daily.service apt-daily.timer 
>/dev/null || true
fi
# End automatically added section




Greets,

Alexandre Detiste

Reply via email to