Le jeudi 01 avril 2010, Tanguy Ortolo a écrit :
> Le jeudi 01 avril 2010, Martin Pitt a écrit :
> > Can you confirm that logcheck is silent if the directory
> > merely exists?
> 
> I shall test it and tell you in a few time. Maybe I will have to wait
> for a day or two.

I confirm:
# file /var/log/postgresql
/var/log/postgresql: directory
# logrotate -f /etc/logrotate.d/postgresql-common >/dev/null
[no output]

# rmdir /var/log/postgresql

# file /var/log/postgresql
/var/log/postgresql: ERROR: cannot open `/var/log/postgresql' (No such file or 
directory)
# logrotate -f /etc/logrotate.d/postgresql-common >/dev/null
error: error accessing /var/log/postgresql: No such file or directory
error: /etc/logrotate.d/postgresql-common:1 glob failed for
/var/log/postgresql/*.log

-- 
Tanguy Ortolo

Attachment: signature.asc
Description: Digital signature

Reply via email to