[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1433] Cron generate a lot of mail to root between 06:00 and 07:00. One message (11MB) for each client



http://bugs.skolelinux.org/show_bug.cgi?id=1433





--- Comment #4 from Petter Reinholdtsen <pere@hungry.com>  2010-02-01 14:50:56 ---
Something like this in ltsp-make-client should solve it.  This patch is not
tested, and the list of cron jobs to disable is not correct nor complete.
I do not have a ltsp chroot easily available at the moment for testing it.

Index: ltsp-make-client
===================================================================
--- ltsp-make-client    (revision 62355)
+++ ltsp-make-client    (working copy)
@@ -430,6 +430,20 @@
     in_target update-rc.d ltsp_local_mount start 01 3 .
 fi

+disable_cronjob() {
+    jobname="$1"
+    for crondir in /etc/cron.d /etc/cron.daily /etc/cron.hourly \
+       /etc/cron.monthly /etc/cron.weekly ; do
+       job="$crondir/$jobname"
+       if [ -x "$job" ] ; then
+           mv "$job" "$job"~disabled
+       fi
+    done
+}
+
+disable_cronjob anacron cron-apt debsecan etcinsvk php5 \
+    0anacron acct apt
+
 append_if_missing() {
     file="$1"
     pattern="$2"


-- 
Configure bugmail: http://bugs.skolelinux.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.


Reply to: