Prblems log rotating a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux