Package: backupninja Version: 0.9.7-5 Severity: normal Tags: patch Hi,
In squeeze, cron is a lot more verbose when a job finishes with error. Sep 22 09:00:01 totems /USR/SBIN/CRON[22210]: (root) CMD (if [ -x /usr/sbin/backupninja ]; then /usr/sbin/backupninja; fi) Sep 22 09:00:01 totems /USR/SBIN/CRON[22209]: (CRON) error (grandchild #22210 failed with exit status 2) I have a lot of servers which have backupninja installed by default but don't have a job configured because they still don't need it (backupninja is always installed by a server template). The result, hourly cron spam from a good number of servers. This would probably fix it for me. --- /usr/sbin/backupninja 2010-02-27 06:00:37.000000000 +0100 +++ backupninja 2010-09-22 09:21:15.000000000 +0200 @@ -518,7 +518,8 @@ files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` if [ -z "$files" ]; then - fatal "No backup actions configured in '$configdirectory', run ninjahelper!" + info "No backup actions configured in '$configdirectory', run ninjahelper!" + exit 0 fi fi Thank you! -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: lang=ca_es.ut...@valencia, lc_ctype=ca_es.ut...@valencia (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org