HAMMER cleanup

Claes Wallin clacke+dragonflybsd at lysator.liu.se
Wed Oct 29 12:00:15 PDT 2008


Michel Salim wrote:
On Wed, Oct 22, 2008 at 8:56 AM, Sascha Wildner <saw at online.de> wrote:
Michel Salim schrieb:
Is there anything like Linux's anacron on the BSDs? It would just run
any cron jobs missed because the computer was not on. Not sure if it
can be configured to only kick off after the rest of the boot process
has been completed though; that would avoid the "doing heavy IO at
start-up" concern.
Anacron is in pkgsrc (time/anacron). Never used it personally, though.

So:
- not a good option, since it's not part of the core OS?
- or, alternatively, laptop users who use Hammer are assumed to know
what they are doing
Another solution would be to do a cleanup every N mounts (similar to
the tunable file system option for ext2/3 on Linux that would run fsck
every N mounts); but this would not work for laptop users who just
suspend their machines at night.
Anacron is not a (very) complicated beast. Basic functionality could be 
provided by a simple script that checks if a timestamp was updated at 
most <bar> days ago. If timestamp is old, run cleanup. Run this script 
every <foo> minutes.
--
   /c





More information about the Kernel mailing list