severity 469135 wishlist thanks Jeremie Bouttier wrote: > Package: pm-utils > Version: 0.99.2-3 > Severity: normal > > Hi, > > I realize that on my laptop the scripts in /etc/cron.(daily|weekly|monthly) > are not > run as regularly as they should, if anacron was doing its job. This is > because I put > my laptop to sleep at night, and wake it up typically after 7:30 AM so > /etc/cron.d/anacron is not run. > > I believe anacron should be invoked on resume, and moreover when the AC is > plugged > (because by default anacron is not run when AC is unplugged), so that it can > check > whether it has work to do. A number of related bugs (202605, 260323, 426294) > have been > filed for anacron, and the issue seem to have been addressed in Ubuntu. > However the > fix probably depends on the power management script used, so I file this as a > pm-utils > bug. > > My current fix is to add hooks in /etc/pm/(power.d|sleep.d) that do > "invoke-rc.d > anacron start" on resume/AC on (and also "invoke-rc.d anacron stop" on > suspend/AC > off).
Hi Jeremie, thanks for the bug report. Imho it would be "cleaner", if packages, just as anacron in this case, shipped those hooks themself. We might add them to pm-utils as an intermediate solution, but when pm-utils is pervasive enough (and hopefully has established as default powermanagement scripts suite), we will try to push out those scripts to the original packages again. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

