]> git.pld-linux.org Git - packages/exim.git/commitdiff
- rel 5; tidydb removes old records without freeing space; free space manually auto/th/exim-4.80.1-5
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 24 Nov 2012 17:53:08 +0000 (18:53 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 24 Nov 2012 17:53:08 +0000 (18:53 +0100)
exim.cron.db
exim.spec

index f041c8345cfa127e6674c77744dae7b5450d29e6..9e1ed2b8c7726fce03167f47ea61da4d38fa6093 100644 (file)
@@ -9,12 +9,22 @@ for db in $(/usr/bin/find $SPOOLDIR/db -maxdepth 1 -name '*.lockfile' -or -type
        t=
        case "$db" in
                callout)
-                       t="-t 3d"
+                       t="-t 7d"
                        ;;
                *)
                        ;;
        esac
        /usr/bin/exim_tidydb $t $SPOOLDIR $db > /dev/null
+       # Try to lower it's size if it is bigger than 300M. Result still can be bigger if the db contains
+       # so much unexpired data.
+       toobig=$(/usr/bin/find $SPOOLDIR/db/$db -size +300M)
+       if [ -n "$toobig" ]; then
+               /usr/bin/exim_dumpdb $SPOOLDIR $db | /usr/bin/exim_dbmbuild -nowarn - $SPOOLDIR/db/$db.new > /dev/null
+               chown exim:exim $SPOOLDIR/db/$db.new
+               chmod 640 $SPOOLDIR/db/$db.new
+               mv $SPOOLDIR/db/$db.new $SPOOLDIR/db/$db
+       fi
+
 done
 
 exit 0
index 15644356c7f588aaab3243081da93d95e250076a..54dfebea2eee29d0926252052801fa683a6ead50 100644 (file)
--- a/exim.spec
+++ b/exim.spec
@@ -15,7 +15,7 @@ Summary(pl.UTF-8):    Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR.UTF-8):  Servidor de correio eletrônico exim
 Name:          exim
 Version:       4.80.1
-Release:       4
+Release:       5
 Epoch:         2
 License:       GPL
 Group:         Networking/Daemons/SMTP
This page took 0.580235 seconds and 4 git commands to generate.