From owner-freebsd-questions Tue Feb 11 1:17:58 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 454E837B401 for ; Tue, 11 Feb 2003 01:17:57 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 826B443F3F for ; Tue, 11 Feb 2003 01:17:55 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h1B9HpnZ062022 for ; Tue, 11 Feb 2003 09:17:51 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h1B9HpX1062017 for freebsd-questions@FreeBSD.ORG; Tue, 11 Feb 2003 09:17:51 GMT Date: Tue, 11 Feb 2003 09:17:51 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: (OT) fetchmail question Message-ID: <20030211091751.GB61666@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <00aa01c2d148$b8101f30$aeb423cf@3bagsmedia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00aa01c2d148$b8101f30$aeb423cf@3bagsmedia> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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