SPECS: inn.spec - more logs cleanup (or does it write directly the...

Jakub Bogusz qboosh at pld-linux.org
Sat Mar 25 17:01:59 CET 2006

On Sat, Mar 25, 2006 at 04:50:58PM +0100, glen wrote:
> Author: glen                         Date: Sat Mar 25 15:50:58 2006 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - more logs cleanup (or does it write directly there?)

It's more general issue, not only inn-related.
Many syslog-handled log files are owned by some rpm packages, some of
them are created in %post.

So: should log files be created/owned by rpm packages or not?

> -%attr(770,root,news) %dir /var/log/news
> -%attr(770,root,news) %dir /var/log/archiv/news

Current default syslog/syslong-ng configuration in PLD use
/var/log/news/news.* - so when this dir doesn't exist, syslog will fail.
The same for /var/lib/archiv/news and default inn.logrotate.

> -%attr(664,news,news) %ghost /var/log/news/news.notice
> -%attr(660,news,news) %ghost /var/log/news/news.crit
> -%attr(660,news,news) %ghost /var/log/news/news.err

Won't rpm remove these log files on upgrade?

Jakub Bogusz    http://qboosh.cs.net.pl/

More information about the pld-devel-en mailing list