[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#945862: /etc/cron.daily/apt-compat: Use "sleep" later in the script



On Fri, Nov 29, 2019 at 11:51:51PM +0000, Bjarni Ingi Gislason wrote:
> Package: apt
> Version: 1.8.4
> Severity: minor
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
>   The "sleep" funtion was shown in the output of "ps".
> 
> ###
> 
>   Do not put the script to a sleep, if it is afterwards not going to do
> its job.
> 
>   Therefor call "random_sleep" after "check_power || exit 0".

That would be wrong. If we sleep 30 min and you remove your power within
those 30 minutes, we'd run when we shouldn't.

I guess we could do the power check twice. But then people might complain
that we check power first and the script does not run because they plugged
in too late or something.

I mean, meh, you could just use systemd if you want sane behavior.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: