Quoting John Baldwin <j...@freebsd.org> (from Mon, 27 Sep 2010 09:28:47 -0400):
savecore already has support for a 'minfree' file to prevent
crashdumps filling the crashdir. Maybe the default install should
include a minfree set to (say) 512MB.
The one problem this approach is it implements a FIFO instead of a LIFO. I
want the N most recent crashdumps to be saved, not the first N.
Check the size in the shell script before, remove older ones ("ls -1t
| grep pattern | tail +<N+1>" gives you possible candidates).
Bye,
Alexander.
--
Applause, n.:
The echo of a platitude from the mouth of a fool.
-- Ambrose Bierce, "The Devil's Dictionary"
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"