From owner-freebsd-rc@FreeBSD.ORG Sat Dec 24 17:29:46 2011 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 856C3106566B; Sat, 24 Dec 2011 17:29:46 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D1338FC0C; Sat, 24 Dec 2011 17:29:45 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so14038007vbb.13 for ; Sat, 24 Dec 2011 09:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=VdKG6w15ndfHp656W4G6tFU/xpyc9SmYwOecmRbtVIo=; b=i+J0FlPgZefiXfiBbuvRRMP8h2sLdPHoiJYzHBo+yCCXc4xhmlVVd8CxnLGYgShPle f06EbJf/Er+j+0zdf/oRNDDrzGCMxm+tST90USrTdVxY9CoOaqqzorZWWWAfaWke7baq 0C0EoFad9TjUS38Gh/9rBmLedMgtprUWlBvNg= Received: by 10.52.177.38 with SMTP id cn6mr9549137vdc.8.1324747785320; Sat, 24 Dec 2011 09:29:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.29.225 with HTTP; Sat, 24 Dec 2011 09:29:24 -0800 (PST) In-Reply-To: <74F7E2CE-89DC-4F64-9A50-71B9FD458025@bsdimp.com> References: <201112241230.pBOCUF3h064098@freefall.freebsd.org> <74F7E2CE-89DC-4F64-9A50-71B9FD458025@bsdimp.com> From: Maxim Ignatenko Date: Sat, 24 Dec 2011 19:29:24 +0200 Message-ID: To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org Subject: Re: conf/163508: [rc.subr] [patch] Add "enable" and "disable" commands to rc.subr 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: Sat, 24 Dec 2011 17:29:46 -0000 >=C2=A0If the 5% of cases are when someone has done something complicated t= o the rc.conf file, then I don't care: they won't use this interface and we= can detect this case and do nothing. Now I don't see how to distinguish cases when ${rcvar} set to default value in rc-script and when it's set in other file in some not obvious way.