LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   why is maillog on my server getting created in /var/log/maillog.3 ? (http://www.linuxquestions.org/questions/linux-software-2/why-is-maillog-on-my-server-getting-created-in-var-log-maillog-3-a-561996/)

weblink_dipti 06-15-2007 05:24 AM

why is maillog on my server getting created in /var/log/maillog.3 ?
 
Hi all,

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.

acid_kewpie 06-15-2007 05:27 AM

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.

weblink_dipti 06-16-2007 04:47 AM

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 05:56 AM.