On Saturday 25 March 2006 18:01, Jakub Bogusz wrote: > 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? imho syslog handled files should be handled by syslogdaemon package.
> > -%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. so, syslogdaemon should own /var/log/news dir too. and inn.logrotate shouldn't exist, the behaviour should be in syslogdaemon package > > -%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? nope (see /cvsroot/test/test-ghost.spec) [EMAIL PROTECTED] pld/test $ rpm -qf /bla file /bla is not owned by any package [EMAIL PROTECTED] pld/test $ ls -l /bla -rw-r--r-- 1 root root 0 Mar 26 14:54 /bla -- glen _______________________________________________ pld-devel-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
