From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 13:01:17 2003 Return-Path: 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 4647816A4BF for ; Wed, 3 Sep 2003 13:01:17 -0700 (PDT) Received: from remt30.cluster1.charter.net (remt30.cluster1.charter.net [209.225.8.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E00D43FCB for ; Wed, 3 Sep 2003 13:01:16 -0700 (PDT) (envelope-from sirenscall@charter.net) Received: from [66.188.196.197] (HELO CR1) by remt30.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 14393680 for freebsd-questions@freebsd.org; Wed, 03 Sep 2003 16:01:14 -0400 From: "Christopher W Rueber" To: Date: Wed, 3 Sep 2003 15:01:16 -0500 Message-ID: <000001c37256$22470720$c5c4bc42@CR1> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 In-Reply-To: <3F564740.5050704@mac.com> Importance: Normal Subject: Problems with dhclient.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 20:01:17 -0000 I have looked through all the help files that I can find, handbook and such (along with the Complete FreeBSD book).. And I just can't seem to solve this problem: I am setting up high speed internet for a Cable Modem. My cable provider uses a DHCP setup, thus I have to use dhclient. I am running an NC100 ethernet card (using the tulip.o driver) - That seems to be working fine (As it will obtain the DHCP information from my router when it is setup). However, whenever I set my router to bridging (as I want to be able to connect to the box when I'm away from home, and NATting doesn't work real well for that), the box can't seem to use DHCP to get it's information. My ISP provisions for 3 IP addresses, and I'm only using one other (and I have checked to make sure that any previous are released from the modem itself). I'm pulling an IP of 0.0.0.0 when I use ifconfig. I've also went through my rc.conf file to make sure everything is setup.it seems okay. Any ideas? Am I missing something obvious? Thanks in advance for the help! (Please send email directly back to this email address if any other information is needed, or you have a suggestion!) Replyto:sirenscall@charter.net Chris. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Chuck Swiger Sent: Wednesday, September 03, 2003 2:56 PM To: David Banning Cc: questions@freebsd.org Subject: Re: how to run a program as a daemon David Banning wrote: > I am running tmda-ofmipd for my smtp server and occasionally > it dies. I wonder how I could set it up to run so that if it > dies for some reason, it will start up again. Right now, it > starts in my rc.local like so; > > /usr/local/bin/tmda-ofmipd -R imap://localhost -u tofmipd Look at DJB's daemontools, perhaps. But the general idea is that you have a monitor script which looks like: #! /bin/sh while : ; do /usr/local/bin/tmda-ofmipd -R imap://localhost -u tofmipd echo "TMDA daemon died! Restarting in 5 seconds..." sleep 5 done -- -Chuck _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"