why is maillog on my server getting created in /var/log/maillog.3 ?
I have Fedora Core 2 installed on my server. The problem is that my "maillog" is getting created in /var/log/maillog.3 instead of /var/log/maillog (which is blank at present).
I have also checked /etc/syslog.conf but to find no errors there. I think there is also some problem with log rotation since maillog, maillog.1 and maillog.2 are all blank.
Can anyone help me out with this?
Thanks in advance.
sounds like you need to hup whatever is writing to that file during the logrotate postrotate stage. once a daemon like sendmail opens the file with the given name, that file is then used regardless of what it is called, so if you rename it, it's still got an open file handle and will still hav those messages written to it. by hupping the daemon, all files should be closed and then reopened, based on original configuration details. as such the new empty will be created and written to.
Its working now
I just restarted my "syslogd" service and ran the logrotate command once. so, logs are now getting created in /var/log/maillog
Thanks for your help :)
|All times are GMT -5. The time now is 08:55 PM.|