DragonFly kernel List (threaded) for 2008-10
Re: HAMMER cleanup
Michel Salim wrote:
On Wed, Oct 22, 2008 at 8:56 AM, Sascha Wildner <firstname.lastname@example.org> wrote:
Michel Salim schrieb:
Anacron is in pkgsrc (time/anacron). Never used it personally, though.
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
- 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.