[php-maint] Bug#582320: php5-common: cron job fails when package removed but not purged

Jonathan Nieder jrnieder at gmail.com
Wed May 19 22:21:37 UTC 2010


Package: php5-common
Version: 5.3.2-1
File: /etc/cron.d/php5

After installing and removing (but not purging) php5-common, I get
emails every half hour:

 Date: Wed, 19 May 2010 16:09:02 -0500
 From: Cron Daemon <root>
 To: root
 Subject: Cron <root>   [ -x /usr/lib/php5/maxlifetime ] && [ -d
        /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
        +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm (failed)

 command failed with exit status 1

Maybe the cronjob should be rewritten to use || instead.

 ! [ -x /usr/lib/php5/maxlifetime ] ||
 ! [ -d /var/lib/php5 ] ||
 find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) \
	-print0 | xargs -n 200 -r -0 rm (failed)





More information about the pkg-php-maint mailing list