Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2002 11:24:59 +0800
From:      leafy <leafy@leafy.idv.tw>
To:        freebsd-current@freebsd.org
Subject:   Re: Confused by mpd and ipnat
Message-ID:  <20021210032459.GA595@leafy.idv.tw>
In-Reply-To: <20021210021727.GB16008@matrix.identd.net>
References:  <20021209160621.GA665@leafy.idv.tw> <20021210021727.GB16008@matrix.identd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 09, 2002 at 06:17:27PM -0800, Mike Makonnen wrote:
> Does mpd install a startup script in /usr/local/etc/rc.d ? Does it get started
> in the background? If it's script is in /usr/local/etc/rc.d then it gets
> run by the /etc/rc.d/local script which runs after /etc/rc.d/ipnat. In this
> case you can simply re-apply the rules after the negotiation is completed:
> /etc/rc.d/ipnat reload
> 
> Cheers.
> -- 
> Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
I finally got over this one. The problem is that mpd needs a very long time
for PPPoE negotiation, thus if we run ipnat reload before it's settled, that
will be totally useless. So I moved the mpd startup script to
PREFIX/etc/rc.d/000.mpd.sh and the ipnat reload in zzz.ipnat_reload.sh and
VIOLA!

Putting them in the same script does not work, maybe this could be improved?

JY
 



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




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