Date: Mon, 9 Dec 2002 19:45:08 -0800 From: Mike Makonnen <mtm@identd.net> To: leafy <leafy@leafy.idv.tw> Cc: freebsd-current@freebsd.org Subject: Re: Confused by mpd and ipnat Message-ID: <20021210034508.GE16008@matrix.identd.net> In-Reply-To: <20021210032459.GA595@leafy.idv.tw> References: <20021209160621.GA665@leafy.idv.tw> <20021210021727.GB16008@matrix.identd.net> <20021210032459.GA595@leafy.idv.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Tue, Dec 10, 2002 at 11:24:59AM +0800, leafy wrote: > 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? How could this not work? Are you starting it in the background? Must be. I'm assuming that you don't want to run them serially because it would take too long to startup your system so you use some sort of mechanism (like the -background option to ppp(8)) to run it in the background. I would suggest that you do something like this: ( mpd -foreground; /etc/rc.d/ipnat reload ) & ... unless it is not possible for some reason. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99WNE2uHir9vMaLkRAgL5AJ96n9Ve4D6LXCn6uCrdWyTSKhM2RQCeMiCU pEqpccv1Sx7GSHGlcXV5N0Y= =oSh9 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021210034508.GE16008>
