Date: Fri, 20 Dec 2002 15:24:06 +0000 From: Scott Mitchell <scott.mitchell@mail.com> To: "P. U. Kruppa" <520023893678-0001@t-online.de> Cc: Jonathan Chen <jonc@chen.org.nz>, freebsd-questions@FreeBSD.ORG Subject: Re: starting ppp on boot up Message-ID: <20021220152406.B29073@fishballoon.dyndns.org> In-Reply-To: <20021220141948.O934-100000@small.pukruppa.de>; from 520023893678-0001@t-online.de on Fri, Dec 20, 2002 at 02:31:20PM %2B0000 References: <20021220102345.A29073@fishballoon.dyndns.org> <20021220141948.O934-100000@small.pukruppa.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 20, 2002 at 02:31:20PM +0000, P. U. Kruppa wrote: > In the meantime I found # man and copied/edited this > - working - /usr/local/etc/rc.d - script: > > ------------------------------------------- > #!/bin/sh - > # > # initialization/shutdown script for pppd > case "$1" in > start) > /usr/sbin/ppp -nat -ddial adsl && echo -n ' pppd' > ;; > stop) > kill `cat /var/run/foo.pid` && echo -n ' pppd' > ;; > *) > echo "unknown option: $1 - should be 'start' or 'stop'" >&2 > ;; > esac > ------------------------------------------ > > Does this do anything substantially different to your idea? No -- I expect that the command line actually executed will be the same in either case. I guess the advantage of the script is that you have the 'stop' option as well, which you don't get with rc.conf. On the other hand, it's one more script you have to maintain. Personally I'd go with the rc.conf variables and use pppctl to shut down the daemon if I ever needed to, but I think it's down to personal preference at this point. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021220152406.B29073>