[Piuparts-commits] rev 894 - in piatti: home/piupartsm/bin org/piuparts.debian.org/htdocs
Holger Levsen
holger at alioth.debian.org
Sat Apr 2 11:57:58 UTC 2011
Author: holger
Date: 2011-04-02 11:57:55 +0000 (Sat, 02 Apr 2011)
New Revision: 894
Modified:
piatti/home/piupartsm/bin/reschedule_oldest_logs
piatti/org/piuparts.debian.org/htdocs/index.tpl
Log:
add news entry about rescheduling of old logs. only reschedule in sid+wheezy, after 180 days, 200 logs per day maximum
Modified: piatti/home/piupartsm/bin/reschedule_oldest_logs
===================================================================
--- piatti/home/piupartsm/bin/reschedule_oldest_logs 2011-04-02 11:56:39 UTC (rev 893)
+++ piatti/home/piupartsm/bin/reschedule_oldest_logs 2011-04-02 11:57:55 UTC (rev 894)
@@ -30,16 +30,19 @@
fi
#
-# reschedule 100 oldest log files, if they are older then 120 days
+# reschedule 200 oldest log files, if they are older then 180 days
#
-for SECTION in $SECTIONS ; do
- echo $SECTION
- cd $MASTER/$SECTION
- # we ignore bugged here - ptyhon-bts is really the way to go
- find pass fail -name "*.log" -mtime +120 | xargs -n99999 -s999999 ls -dtl |tail -100
- find pass fail -name "*.log" -mtime +120 | xargs -n99999 -s999999 ls -dt |tail -100 | xargs rm 2 > /dev/null
- echo
- echo "#########################################################"
- echo
+for SECTION in $SECTIONS ; do
+ # only for sid and wheezy
+ if [ "$SECTION" == "sid" ] || [ "$SECTION" == "wheezy" ] ; then
+ echo $SECTION
+ cd $MASTER/$SECTION
+ # we ignore bugged here - ptyhon-bts is really the way to go
+ find pass fail -name "*.log" -mtime +180 | xargs -n99999 -s999999 ls -dtl |tail -200
+ find pass fail -name "*.log" -mtime +180 | xargs -n99999 -s999999 ls -dt |tail -200 | xargs rm 2 > /dev/null
+ echo
+ echo "#########################################################"
+ echo
+ fi
done
Modified: piatti/org/piuparts.debian.org/htdocs/index.tpl
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/index.tpl 2011-04-02 11:56:39 UTC (rev 893)
+++ piatti/org/piuparts.debian.org/htdocs/index.tpl 2011-04-02 11:57:55 UTC (rev 894)
@@ -48,6 +48,11 @@
</tr>
<tr class="normalrow">
<td class="contentcell2">
+ <b>2011-04-02</b>: New daily cronjob to reschedule the oldest 200 logfiles of each sid and wheezy, if they are older then 180 days. IOW: make sure no logfile for sid and wheezy is older than half a year.
+ </td>
+ </tr>
+ <tr class="normalrow">
+ <td class="contentcell2">
<b>2011-02-22</b>: piatti.debian.org has been upgraded to squeeze.
</td>
</tr>
More information about the Piuparts-commits
mailing list