Permalink
Browse files

OS-1503 we need to periodically prune the zone's core dataset for old…

… core dumps
  • Loading branch information...
1 parent 978f474 commit 2ce6d74dbd6fe10b6eb5e8ddf6c8b406556c7c72 @jjelinek jjelinek committed Aug 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 overlay/generic/etc/cron.d/crontabs/root
@@ -2,6 +2,8 @@
0 0 * * * /smartdc/bin/sdc-lastcomm -R 30
## Rotate and trim the regular logs nightly.
10 0 * * * /usr/sbin/logadm
+## Delete saved core dumps over 7 days old
+15 0 * * * find /zones/*/cores -mtime +7 -exec rm -f "{}" \;
# NOTE: all entries above are in root's system-defined crontab; see the
# crontab(1) man page.

0 comments on commit 2ce6d74

Please sign in to comment.