fetchmail-friends
[Top] [All Lists]

Re: [fetchmail][Q] log files

2004-05-19 11:38:43
--- Ray Warren <raywarren2(_at_)insightbb(_dot_)com> wrote:
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.

I guess I forgot to mention I'm running fetchmail as myself (non-root).

But anyway, killing and starting fetchmail in my case requires me to
enter my password.  I don't want to put my passwd in .fetchmailrc.  Thus the
reason not to restart fetchmail.

What does /etc/rc.d/init.d/fetchmail contain?

TIA,
Sam



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

HTH
Ray Warren

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends



        
                
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/


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