diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-17 21:24:23 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-17 21:24:23 +0000 |
commit | c6847ff045157ada41f93c578767794b53afab79 (patch) | |
tree | dddabedeb45f624eed607e47041732fd82c97b94 /app-admin/tmpwatch/files | |
parent | Remove obsolete virtual/libstdc++-3.3 dependency (revisit of bug #146821) (diff) | |
download | historical-c6847ff045157ada41f93c578767794b53afab79.tar.gz historical-c6847ff045157ada41f93c578767794b53afab79.tar.bz2 historical-c6847ff045157ada41f93c578767794b53afab79.zip |
modifiy the cronjob to provide hints about cleaning up portage log files, see bug # 121953
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'app-admin/tmpwatch/files')
-rw-r--r-- | app-admin/tmpwatch/files/tmpwatch.cron | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app-admin/tmpwatch/files/tmpwatch.cron b/app-admin/tmpwatch/files/tmpwatch.cron index 7bba27e0c009..54f9e13e1afc 100644 --- a/app-admin/tmpwatch/files/tmpwatch.cron +++ b/app-admin/tmpwatch/files/tmpwatch.cron @@ -1,5 +1,5 @@ #!/bin/sh -# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.2 2004/09/20 09:20:22 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.3 2007/01/17 21:24:23 antarus Exp $ # vim: ft=sh # This cron script contains several (commented out) examples. You may use @@ -10,6 +10,7 @@ TMPWATCH="/usr/sbin/tmpwatch" #PORTAGE_TMPDIR="$(portageq envvar PORTAGE_TMPDIR)/portage" +#PORTAGE_LOGDIR="$(portageq envvar PORT_LOGDIR)" #DISTDIR="$(portageq distdir)" ### EXAMPLES ### @@ -40,3 +41,8 @@ TMPWATCH="/usr/sbin/tmpwatch" # ${TMPWATCH} --atime --fuser 4320 ${DISTDIR:-/usr/portage/distfiles} # fi +# Delete everything in PORTAGE_LOGDIR that hasn't been accessed in 4 weeks +# +# if [[ -d ${PORTAGE_LOGDIR:-/var/log/portage} ]]; then +# ${TMPWATCH} --atime 772 ${PORTAGE_LOGDIR:-/var/log/portage} +# fi |