>A much smaller change would just to add the following file in the
>cron.hourly directory (not tested):
>
>====8<====
>
>#!/bin/sh
>
>/usr/sbin/invoke-rc.d anacron start >/dev/null
>
>====8<====
>
>Of course, my proposed patches would requires that the machine is
>turned on at xx:00 at least once a day. And apparently some people wants
>to use anacron without a cron implementation, this would not solve this
>bug for them either.

> So if somebody has a better solution...

You could maybe call anacron with a native hourly persistent timer.
It would run at boot & every hour.

##### anacron-hourly.timer
[Unit]
Description=Anacron hourly trigger
Documentation=man:anacron(#)

[Timer]
Unit=anacron-hourly.service
OnCalendar=hourly
Persistent=true

##### anacron-hourly.service
[Unit]
Description=Anacron hourly service
Documentation=man:anacron(#)

[Service]
Type=forking
IgnoreSIGPIPE=false
ExecStart=/usr/sbin/anacron ....


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to