Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2003 09:17:51 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: (OT) fetchmail question
Message-ID:  <20030211091751.GB61666@happy-idiot-talk.infracaninophi>
In-Reply-To: <00aa01c2d148$b8101f30$aeb423cf@3bagsmedia>
References:  <00aa01c2d148$b8101f30$aeb423cf@3bagsmedia>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 10, 2003 at 04:09:37PM -0500, Phillip Smith (mailing list) wrote:

> Just wondering if anyone has a suggestion for an elegant way to start
> fetchmail back up for any/all users (with a .fetchmailrc file in their
> home dir), after a system reboot?
> 
> Would a script in rc.d/ be the way to go?

Do you need to run an instance of fetchmail for each user?  There's
two ways of starting fetchmail up that would suit:

First, take a look at the documentation for '@reboot' in crontab(5).
Copy that line into each user's crontab and you're all set.

Second: fetchmail daemon mode has the handy feature that the first
time you call fetchmail, it daemonizes and runs continuously from then
on.  Subsequent attempts to run fetchmail will result in signaling the
original fetchmail process to poll the mailservers immediately.  That
means if you configure the user's mail agents to call fetchmail when
they hit the 'check for new mail' button (which usually also gets
invoked when the mail client starts up) then fetchmail will be started
automatically.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030211091751.GB61666>