I use
/sbinstartproc /usr/bin/fetchmail -d900 -f /etc/fetchmailrc
from ip-up.local
and from ip-down.local
/sbin/killproc /usr/bin/fetchmail

fetchmail never hangs even if the connection is terminated prematurely and
is again successful after a redial attempt.

PS: I use the same for sendmail -q5m

It works great

--Indraneel

-- 
/*****************************************************************.
# Indraneel Majumdar       #  E-mail: [EMAIL PROTECTED]      #
# 4/2 Arobindo Avenue,     #  URL: http://scorpius.iwarp.com      #
# Durgapur, India 713204   #  Tel: +91-343-563571                 #
`*****************************************************************/

On Thu, 11 May 2000, Ramasubramanian,Suresh wrote:

> Babu Kalakrishnan saw fit to inform LI that: 
> 
> >> Run it in daemon mode / put it in ip-up.local as fetchmail&
> >See this e-mail msg to ESR. ( From the file "ip-up" in the contrib 
> >directory of fetchmail source distribution )
> 
> Yep, I know - and pointed it out in an earlier mail to doc pavri.  I
> personally prefer to run fetchmail manually once every ten minutes or so
> when I am online.  In my office, I read an imap folder using mutt's imap
> checking features.  Unfortunately, the imap folder is an exchange server,
> and mutt's imap handling features leave  a bit to be desired ...
> 
> I've been bugging the local sysad to shift my mailbox to the solaris
> machine (where his mailbox is).  He says "tomorrow" - let's see :)
> 
> >this down to the fact that the "pppd" masks a wide range of signals and
> >this means a time-out does not kick in. As I run the "ip-up" script in
> >"bash" this masking is inheritied by "fetchmail".
> 
> That's right - I found it out the hard way - by experience :)  My pop3
> server suddenly died and I didn't have _any_ idea till I ran ps aux and
> saw what was going on ...
> 
> I took fetchmail out of ip-up.local right then and there.
> 
> However, the solution I mentioned was the "simple and basic but
> works" variety :)
> 
> -- 
> Suresh Ramasubramanian + sureshr at staff.juno.com
> --
> The best book on programming for the layman is "Alice in Wonderland";
> but that's because it's the best book on anything for the layman.
> 
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/
> 


-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to