Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-29 Thread Julian Andres Klode
On Sat, Apr 29, 2017 at 11:40:44AM +0200, Lennart Poettering wrote: > That said, there are limits to this: this will only work correctly if > the start jobs for both units are either enqueued at the same time or > in the order they are supposed to be run in. If however, the job for > the unit that

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-29 Thread Dan Nicholson
On Apr 27, 2017 4:31 PM, "Julian Andres Klode" wrote: Hi systemd folks, (service and timer files being discussed at the bottom) we are currently reworking the way automatic updates and upgrades work on Ubuntu and Debian systems. We basically have two persistent timers with

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-29 Thread Lennart Poettering
On Thu, 27.04.17 23:30, Julian Andres Klode (j...@debian.org) wrote: > Hi systemd folks, > > (service and timer files being discussed at the bottom) > > we are currently reworking the way automatic updates and upgrades work > on Ubuntu and Debian systems. We basically have two persistent timers

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-29 Thread Andrei Borzenkov
28.04.2017 12:05, Julian Andres Klode пишет: > On Fri, Apr 28, 2017 at 08:46:45AM +0200, Michal Sekletar wrote: >> On Thu, Apr 27, 2017 at 11:30 PM, Julian Andres Klode >> wrote: >> >>> Now, we seem to be missing one bit: If daily-upgrade is already >>> running, and daily is

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-28 Thread Michal Sekletar
On Fri, Apr 28, 2017 at 11:05 AM, Julian Andres Klode wrote: > From my testing, if B has After=A, and A is already started, the > startup of B is delayed until A has completed - do you mean that > with run queue, or is that merely by accident somehow? Like I said, we can't do

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-28 Thread Julian Andres Klode
On Fri, Apr 28, 2017 at 08:46:45AM +0200, Michal Sekletar wrote: > On Thu, Apr 27, 2017 at 11:30 PM, Julian Andres Klode wrote: > > > Now, we seem to be missing one bit: If daily-upgrade is already > > running, and daily is about to start, daily should wait for > > daily-upgrade

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-28 Thread Michal Sekletar
On Thu, Apr 27, 2017 at 11:30 PM, Julian Andres Klode wrote: > Now, we seem to be missing one bit: If daily-upgrade is already > running, and daily is about to start, daily should wait for > daily-upgrade to finish. I had hoped that maybe that works > automatically given that

Re: [systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-27 Thread Julian Andres Klode
On Thu, Apr 27, 2017 at 11:30:35PM +0200, Julian Andres Klode wrote: > Hi systemd folks, > > (service and timer files being discussed at the bottom) > > we are currently reworking the way automatic updates and upgrades work > on Ubuntu and Debian systems. We basically have two persistent timers

[systemd-devel] Ordering (apt) timer services to not run at the same time

2017-04-27 Thread Julian Andres Klode
Hi systemd folks, (service and timer files being discussed at the bottom) we are currently reworking the way automatic updates and upgrades work on Ubuntu and Debian systems. We basically have two persistent timers with associated services: 1. apt-daily - Downloads new lists and packages 2.