[CentOS] Prblems log rotating a file

Mário Gamito gamito at gmail.com
Fri Mar 23 11:00:07 UTC 2007


Hi,

I needed to logrotate a fil named qmail-queue.log from qmail-scanner.

So i've edit /etc/syslog.conf and changed it to:
*.info;qmail-queue.none;auth.none;mail.none;authpriv.none;cron.none 
         /var/log/messages

(...)

# qmail-queue logs
qmail-queue           /var/spool/qscan/qmail-queue.log


Also, i've edit /etc/logrotate.d/syslog and changed to
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler 
/var/log/boot.log /var/log/cron /var/log/auth 
/var/spool/qscan/qmail-queue.log {
     sharedscripts
     postrotate
         /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> 
/dev/null || true
     endscript
}

----------------------------------------------------

I've restarted the syslog service

In the end all i got was the file not being rotated as well as 
/var/log/messages:
Mar 21 08:24:10 mail kernel: Kernel logging (proc) stopped.
Mar 21 08:24:10 mail kernel: Kernel log daemon terminating.
Mar 21 08:24:11 mail syslog: klogd shutdown succeeded
Mar 21 08:24:11 mail exiting on signal 15

What am i doing wrong ?

Any help would be appreciated.

Warm Regards,
Mário Gamito




More information about the CentOS mailing list