On Sun, Jan 24, 2010 at 3:00 PM, Antoine Jacoutot <ajacou...@bsdfrog.org> wrote: > On Sun, 24 Jan 2010, Ted Unangst wrote: > >> Are you sitting around feeling bored because you don't know how to >> help out OpenBSD? Did your requests for info on where to start come >> back with unhelpful responses? I've got just the thing for you: an >> idea! >> >> Cron runs the weekly update script every Saturday at 3:30am. If you >> use a laptop or other desktop, your computer probably isn't on then. >> So the locate and whatis databases never get updated unless you run it >> by hand. >> >> So somebody should figure out a way to handle this for desktop machines. > > sysutils/anacron
Right, but I think this is something base should handle more gracefully. The locate database is part of the OS, therefore the OS should take the necessary steps to maintain it. Drawbacks of anacron: 1. GPL. Can't import in base. 2. Doesn't run things at a set time. You probably don't want weekly running when you're actually using the system. Since we have to roll our own because #1, may as well fix #2. I think a better solution is something that runs weekly from shutdown. I hit the power button, I walk away, and the next time I use it everything is up to date. It never interrupts my work or slows down startup.