From owner-freebsd-current Mon Dec 9 19:25:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D95C037B401 for ; Mon, 9 Dec 2002 19:25:08 -0800 (PST) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BA2743EA9 for ; Mon, 9 Dec 2002 19:25:03 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.236.111] (port=49155 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:4) id 18Lb13-000KI3-00 for freebsd-current@freebsd.org; Tue, 10 Dec 2002 11:25:02 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id gBA3P0dq000604 for ; Tue, 10 Dec 2002 11:25:00 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id gBA3Ox7b000603 for freebsd-current@freebsd.org; Tue, 10 Dec 2002 11:24:59 +0800 (CST) Date: Tue, 10 Dec 2002 11:24:59 +0800 From: leafy To: freebsd-current@freebsd.org Subject: Re: Confused by mpd and ipnat Message-ID: <20021210032459.GA595@leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org References: <20021209160621.GA665@leafy.idv.tw> <20021210021727.GB16008@matrix.identd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021210021727.GB16008@matrix.identd.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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