Re: [SLE] Re: Running Fetchmail as a deamon
At 06:16 PM 04/28/00 -0700, S.Toms wrote:
(all on one line) 0-59/5 * * * * mail test "`ps acx | grep pppd`" != "" && /usr/bin/fetchmail -d 300
if it finds that pppd daemon is running, it will launch fetchmail which will begin checking for messages. A seperate line like the following
(all on one line) 0-59/5 * * * * mail test "`ps acx | grep pppd`" = "" && /usr/bin/fetchmail -q
which will check to see if pppd is down and kill fetchmail thus preventing problems.
I think this could all be simplified by using fetchmail's -M switch. Start fetchmail at boot (or first time ip-up.local is executed, and leave it running). Fetchmail will fetch mail while on-line, and it will wait while off-line. Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Fri, 28 Apr 2000, Bill Moseley wrote: bm> At 06:16 PM 04/28/00 -0700, S.Toms wrote: bm> bm> >(all on one line) bm> >0-59/5 * * * * mail test "`ps acx | grep pppd`" != "" && bm> /usr/bin/fetchmail -d 300 bm> bm> >if it finds that pppd daemon is running, it will launch fetchmail which bm> >will begin checking for messages. A seperate line like the following bm> > bm> >(all on one line) bm> >0-59/5 * * * * mail test "`ps acx | grep pppd`" = "" && bm> /usr/bin/fetchmail -q bm> > bm> >which will check to see if pppd is down and kill fetchmail thus preventing bm> >problems. bm> bm> I think this could all be simplified by using fetchmail's -M switch. Start bm> fetchmail at boot (or first time ip-up.local is executed, and leave it bm> running). Fetchmail will fetch mail while on-line, and it will wait while bm> off-line. bm> Yeah, I caught your reply on the subject where you talked about the -M, honestly, I forgot about that option and agree it is a good idea which would help remove the second crontab that kills fetchmail. But I still think I would use the crontab method so that I wouldn't have to rely on ip-up (depending on distribution). What do you think? bm> bm> bm> Bill Moseley bm> mailto:moseley@hank.org bm> bm> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
moseley@hank.org
-
tomas@primenet.com