tags 340226 pending thanks On 22 Nov 2005, at 20:34, Todd Troxell wrote:
On Tue, Nov 22, 2005 at 02:14:47PM -0500, Lia Treffman wrote:Well, I uninstalled and then reinstalled logcheck and now it works. That is so very, very weird. Thanks for your time. LiaWeird! I'm glad it works. Logcheck should probably warn on unreadablerulefiles... I retitled this bug.
I've modified cleanrules to test whether the file is readable and exit if not:
for rulefile in $(find $dir); do rulefile=$(basename $rulefile) if [ -f ${dir}/${rulefile} ]; then debug "cleanrules: ${dir}/${rulefile}" if [ -r ${dir}/${rulefile} ]; then# pipe to cat on greps to get usable exit status egrep --text -v '^[[:space:]]*$|^#' $dir/ $rulefile | cat \
>> $cleaned/$rulefile \|| error "Couldn't append to $cleaned/ $rulefile. Disk Full?"
else error "Couldn't read $dir/$rulefile" fi fi done [EMAIL PROTECTED]:~$ sudo chown root:root /etc/logcheck/ignore.d.server/postfix [EMAIL PROTECTED]:~$ sudo -u logcheck logcheck -o -t Error: Couldn't read /etc/logcheck/ignore.d.server/postfix. -j -- -Jamie L. Penman-Smithson <[EMAIL PROTECTED]> t: +44 1273 424795; f: +44 1273 424795 PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8 never send mail to: [EMAIL PROTECTED]
PGP.sig
Description: This is a digitally signed message part