fetchmail-friends
[Top] [All Lists]

Re: [fetchmail][Q] log files

2004-05-19 10:40:09
On Wed, May 19, 2004 at 09:37:05AM -0700, Sam wrote:

I checked the FAQ and man page...

Is there a signal I can send to fetchmail to have it close
and reopen its logfile?  (freopen(2))

Why?  If I move "log" to "log.0" and then awake fetchmail it
continues to log to log.0.  How can I get it to log to
"log"?  I don't want to kill the daemon.

This seems like basic daemon/log behavior so I'm surprised 
if I'm the first to ask about it. :-)

I use this script in /etc/logrotate.d/.It restarts the daemon instead 
of just killing it.

/var/log/mail/fetchmail.log {
    missingok
    postrotate
        /etc/rc.d/init.d/fetchmail restart > /dev/null || /bin/true
    endscript
}

HTH
Ray Warren


<Prev in Thread] Current Thread [Next in Thread>