From owner-freebsd-rc@FreeBSD.ORG Sun Oct 7 11:03:57 2007 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DF3516A468 for ; Sun, 7 Oct 2007 11:03:57 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from terra.mike.lan (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A264B13C465; Sun, 7 Oct 2007 11:03:55 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: by terra.mike.lan (Postfix, from userid 1000) id AD4BD6954B; Sun, 7 Oct 2007 14:08:16 +0300 (EAT) Date: Sun, 7 Oct 2007 14:08:16 +0300 From: Mike Makonnen To: Maksim Yevmenkin Message-ID: <20071007110815.GA16458@terra.mike.lan> References: <20071006215757.GA10458@terra.mike.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD/7.0-CURRENT (i386) Cc: freebsd-rc@freebsd.org Subject: Re: multiple instances of ppp X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2007 11:03:57 -0000 On Sat, Oct 06, 2007 at 03:49:57PM -0700, Maksim Yevmenkin wrote: > > thanks for your comments. what do you think about something like > > # PROVIDE: ppp > # REQUIRE: netif isdnd > # KEYWORD: nojail > > . /etc/rc.subr > > name="ppp" > rcvar=`set_rcvar` > command="/usr/sbin/${name}" > start_cmd="ppp_start" > start_postcmd="ppp_poststart" > > ppp_start_profile() > { > local _ppp_profile, _ppp_mode, _ppp_nat You should lose the commas. Local variable declarations are space-separated. Other than that, looks good. cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org