Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 15:01:16 -0500
From:      "Christopher W Rueber" <sirenscall@charter.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Problems with dhclient....
Message-ID:  <000001c37256$22470720$c5c4bc42@CR1>
In-Reply-To: <3F564740.5050704@mac.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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"




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001c37256$22470720$c5c4bc42>