From owner-freebsd-questions@FreeBSD.ORG Thu Jul 1 17:05:37 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBACC10656C1 for ; Thu, 1 Jul 2010 17:05:37 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A74B8FC18 for ; Thu, 1 Jul 2010 17:05:36 +0000 (UTC) Received: by fxm13 with SMTP id 13so1612350fxm.13 for ; Thu, 01 Jul 2010 10:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=L0bnua8+boWb+nAZDPkD4ieWUqHgsFQvahfLs4/W8f8=; b=FkZkcqLV2UIldxsqftP8/YDOkl6Wajth7KPZXmfjaNWAlLXO3FoXYlOD6z4sf06Kus Gtw2VKoIoo5Q7XHaeLIUhzZEFtWcOjRYpigI1R7mmq+Gd/9JeAzlqtKJtXQsMxegoyw/ u0vfEvQBeN8cg5eoB2ZD5znGluiIHf8nbVdh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Y6JiL6WYwgSyZxs3y+lYbg6swChJ+1yC3ae8FG2OQSbbHJnO7Z/vXD8BPfcop3UrYS Bv2GiGxt5Xq3etuDg45FhD6TVWcsdVn+OsetrbCXF1t7EFt6eXDjDLACvo2RkxgHIAzg hj15HT6AUcbXiZe3hBwkw+sz1jQATQNQx2u2o= Received: by 10.86.36.5 with SMTP id j5mr7783fgj.16.1277988730870; Thu, 01 Jul 2010 05:52:10 -0700 (PDT) Received: from gumby.homeunix.com ([87.81.140.128]) by mx.google.com with ESMTPS id e20sm15782971fga.19.2010.07.01.05.52.09 (version=SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 05:52:10 -0700 (PDT) Date: Thu, 1 Jul 2010 13:52:07 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100701135207.414b2334@gumby.homeunix.com> In-Reply-To: <511898.25578.qm@web52907.mail.re2.yahoo.com> References: <511898.25578.qm@web52907.mail.re2.yahoo.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: rc.conf: gnome_enable="YES" - which instructions executed? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 17:05:37 -0000 On Wed, 30 Jun 2010 22:03:04 -0700 (PDT) Chris Stankevitz wrote: > I would like to learn more about how rc operates. I want to know > where on the hard drive the instructions are located that activate > when I say gnome_enable="YES". I naively thought I would find a file > called "/usr/local/etc/rc.d/gnome" -- but I did not. Something more > complicated is going on. So my question is -- how is this working? Normally it works they way you thought it did - this is special case. Mostly "*_enable" variables are defaulted to NO, but those five scripts set their default from gnome_enable, which in turn is defaulted to NO. By setting gnome_enable="YES" you can start all the daemons that Gnome needs without having to know which they are, and without having to keep track of them as Gnome is upgraded. And you can still turn-off things you don't want e.g.: gnome_enable=YES gdm_enable=NO