Hi Michael,

(see below...)

Michael Biebl <bi...@debian.org> 于2018年11月12日周一 上午7:44写道:
>
>
> Hi
>
> On Mon, 12 Nov 2018 00:18:54 +0000 Boyuan Yang <by...@debian.org> wrote:
>
> >  anacron (2.3-26) unstable; urgency=medium
> >  .
> >    * QA upload.
> >    * debian/60-anacron.rules:
> >      + Add new udev rule to trigger anacron when external power supply
> >        is online. (Closes: #864213).
>
> Please don't do that, i.e. starting potentially long running tasks from
> a udev rules file.
> This is explicitly documented as not supported:
> https://manpages.debian.org/unstable/udev/udev.7.en.html
>
> ==============================================================
>  This can only be used for very short-running foreground tasks. Running
> an event process for a long period of time may block all further events
> for this or a dependent device.
> Starting daemons or other long-running processes is not appropriate for
> udev; the forked processes, detached or not, will be unconditionally
> killed after the event handling has finished.
> ==============================================================
>
> As we nowadays trigger cron hourly, I would guess the original issue is
> no longer valid anyways, as the chance that cron is executed is now much
> higher.
>
> Please consider dropping the udev rule again.

Current implementation is to call invoke-rc.d, which is non-blocking and will
return immediately. Thus I believe we should not drop it.

Hourly trigger via cron is really not enough since cron job for
anacron still won't
run when AC power supply is not present.

I will look into other suggestions later.

Thanks,
Boyuan Yang

Reply via email to