Commits

M0E-lnx  committed f035f3b

Modified logging on slave cleaning script to include dir size stats

  • Participants
  • Parent commits 9f95826

Comments (0)

Files changed (1)

File slave/usr/local/bin/slave-cleaner.sh

 
 for rel in $VLVERSIONS; do
 	jaildir=${CHROOTS[$rel]}
+	ssize=$(du -sh --exclude CHROOT-RO $jaildir|xargs |cut -f 1 -d ' ')
 	cd $jaildir || exit 1
-	echo "$(date) Cleaning up $jaildir"
+	echo "$(date) Cleaning up $jaildir.  Starting size $ssize"
 	for i in $(find . -maxdepth 1 -type d -name 'CHROOT-RWSB.*' -mtime +1); do
 	    inmount=$(mount | grep "$i")
 	    if [ "x$inmount" != "x" ]; then
 	    else
 		rm -rf $i
 	    fi
-    done
+	done
+	esize=$(du -sh --exclude CHROOT-RO $jaildir | xargs|cut -f 1 -d ' ')
+	echo "... Size after cleaning up=$esize"
 
 
 done