From owner-freebsd-questions@FreeBSD.ORG Fri Jul 9 03:53:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F039016A4CE; Fri, 9 Jul 2004 03:53:36 +0000 (GMT) Received: from www.reppep.com (www.reppep.com [66.92.104.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB94B43D1F; Fri, 9 Jul 2004 03:53:36 +0000 (GMT) (envelope-from pepper@reppep.com) Received: from [10.0.1.250] (airport.reppep.com [66.92.104.202]) by www.reppep.com (Postfix) with ESMTP id DB6C5FF6E; Thu, 8 Jul 2004 23:53:34 -0400 (EDT) Mime-Version: 1.0 X-Sender: pepper@mail.reppep.com Message-Id: Date: Thu, 8 Jul 2004 23:50:20 -0400 To: freebsd-questions@freebsd.org From: Chris Pepper Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: freebsd-doc@freebsd.org Subject: Finding rc variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 03:53:37 -0000 For naive users (as I am under FreeBSD 5), /etc/rc.d and beg the question: "What variables do I need to enable in rc.conf?" Is the intention that users will add an _enable variable for each of the 113 scripts in /etc/rc.d they use, or only a subset? The Handbook doesn't list the scripts that are toggled via rc.conf (which is good from a maintenance perspective), but is a there an efficient way to get such a list, or is it really just 'ls /etc/rc.d'? I see mentions of RCng and rc.conf in /usr/ports/UPDATING, but they're not suitable for extracting a complete list. Reading UPDATING, I get the impression all ports will eventually use RCng, but most of the scripts I have installed don't yet -- is the following a suitable test for port scripts? grep '^# KEYWORD:' /usr/local/etc/rc.d/* Thx, Chris Pepper -- Chris Pepper: Rockefeller University: