/etc/cron.daily/amavisd-new warns when removed

Justin T Pryzby justinp at norchemlab.com
Fri Oct 31 15:36:41 UTC 2008


Removing (but not purging) amavisd-new causes the cronjob to exit 1,
causing run-parts to warn.

--- /etc/cron.daily/amavisd-new~	2008-10-31 08:35:22.000000000 -0700
+++ /etc/cron.daily/amavisd-new	2008-10-31 08:35:50.000000000 -0700
@@ -3,4 +3,5 @@
 #  Daily maintenance for amavisd-new
 #  $Id: amavisd-new.cron.daily 930 2006-08-10 13:38:45Z hmh $
 # 
-test -e /usr/sbin/amavisd-new-cronjob && exec /usr/sbin/amavisd-new-cronjob sa-clean
+[ ! -e /usr/sbin/amavisd-new-cronjob ] && exit
+exec /usr/sbin/amavisd-new-cronjob sa-clean




More information about the ubuntu-users mailing list