http://bugs.skolelinux.org/show_bug.cgi?id=1433
--- Comment #5 from Petter Reinholdtsen <[email protected]> 2010-02-01 16:31:57 --- Here is a tested patch, disabling all the currently installed cron jobs except the ones we want to have running. Index: sbin/ltsp-make-client =================================================================== --- sbin/ltsp-make-client (revision 62414) +++ sbin/ltsp-make-client (working copy) @@ -430,6 +430,37 @@ in_target update-rc.d ltsp_local_mount start 01 3 . fi +disable_cronjob() { + for jobname in $@ ; do + for crondir in /etc/cron.d /etc/cron.daily /etc/cron.hourly \ + /etc/cron.monthly /etc/cron.weekly ; do + job="$target$crondir/$jobname" + if [ -x "$job" ] ; then + mv "$job" "${job}~disabled" + fi + done + done +} + +# Disable the cron jobs that should not be running on a diskless +# workstation. Keep rwhod, shutdown-at-night and sitesummary-client. +disable_cronjob \ + apt \ + aptitude \ + bsdmainutils \ + cvs \ + debian-edu-config \ + desktop-profiles \ + etcinsvk \ + exim4-base \ + htdig \ + man-db \ + mlocate \ + ntp \ + popularity-contest \ + scrollkeeper \ + standard + append_if_missing() { file="$1" pattern="$2" After talking to Holger, I have commited it to trunk, and if I understand it correctly it will not be in the first stable release r0 but might make it to r1. -- 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. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

