From owner-freebsd-questions Wed Sep 22 11: 7:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from uswgco3.uswc.uswest.com (uswgco3.uswest.com [209.54.108.174]) by hub.freebsd.org (Postfix) with ESMTP id 6547215910 for ; Wed, 22 Sep 1999 11:07:00 -0700 (PDT) (envelope-from mmeola@ima2wk6.uswc.uswest.com) Received: from egate-ut3.uswc.uswest.com (egate-ut3.uswc.uswest.com [148.157.122.201]) by uswgco3.uswc.uswest.com (8.8.5/8.8.5) with ESMTP id MAA10161 for ; Wed, 22 Sep 1999 12:06:56 -0600 (MDT) Received: from smokey.uswc.uswest.com (localhost [127.0.0.1]) by egate-ut3.uswc.uswest.com (8.8.8/8.8.8) with ESMTP id MAA11131 for ; Wed, 22 Sep 1999 12:06:55 -0600 (MDT) Received: from ima2wk6.uswc.uswest.com (ima2wk6.uswc.uswest.com [151.116.151.207]) by smokey.uswc.uswest.com (8.6.11/uswc-hub.950320) with ESMTP id MAA29997 for ; Wed, 22 Sep 1999 12:06:54 -0600 Received: (from mmeola@localhost) by ima2wk6.uswc.uswest.com (8.8.8+Sun/uswc-server.950313) id MAA08958 for freebsd-questions@freebsd.org; Wed, 22 Sep 1999 12:06:48 -0600 (MDT) Date: Wed, 22 Sep 1999 12:06:48 -0600 From: Matt Meola To: FreeBSD Questions Subject: Re: fetchmail Message-ID: <19990922120648.C8713@ima2wk6.uswc.uswest.com> References: <19990920154732.A293@rknebel.uplink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2us In-Reply-To: X-URL: http://www.qsl.net/kc0dxw Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 20, 1999 at 05:47:48PM -0400, William Melanson wrote: > On Mon, 20 Sep 1999, Rick Knebel wrote: > > % > % Hi, > % I want to start fetchmail as root during bootup. > % What file should I put it into? > % > > I'd put a simple shell script in /usr/local/etc/rc.d in which it starts > off by sleeping for say... 30 seconds (or however long it'll take for your > box to come up and establish network connection) then execute fetchmail > accordingly. This _may_ be fraught with peril, since it creates a race condition. A better solution is to either: 1. Run fetchmail from /usr/local/etc/rc.d with the -d option, making it a daemon; enable user-ppp dynamic dialing. 2. Run fetchmail from ppp.linkup -- this is more elegant, in that it ONLY gets started when the link is up. -- Matt Meola Bailey, Colorado Amateur Radio Operator - KC0DXW http://www.qsl.net/kc0dxw ARES District Six AEC NRA Life Member "Gun control means using two hands." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message