From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 15:44:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30D4F16A4CE; Sat, 31 Jul 2004 15:44:07 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0740D43D5D; Sat, 31 Jul 2004 15:44:04 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.66.168] (HELO pool-151-200-10-97.res.east.verizon.net) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP-TLS id 53149894; Sat, 31 Jul 2004 18:37:06 +0300 Received: from rogue.acs-et.com (localhost [127.0.0.1]) ESMTP id i6VFiDK3035724; Sat, 31 Jul 2004 18:44:27 +0300 (EAT) (envelope-from mtm@rogue.acs-et.com) Received: (from mtm@localhost) by rogue.acs-et.com (8.12.11/8.12.11/Submit) id i6VFi1WX035710; Sat, 31 Jul 2004 18:44:01 +0300 (EAT) (envelope-from mtm) Date: Sat, 31 Jul 2004 18:43:57 +0300 From: Mike Makonnen To: Andrey Chernov , Oliver Eikemeier Message-ID: <20040731154357.GA35674@rogue.acs-et.com> References: <20040731104933.GA1312@rogue.acs-et.com> <03C7D82F-E2F5-11D8-9C56-00039312D914@fillmore-labs.com> <20040731145616.GA14576@rogue.acs-et.com> <20040731150542.GA5612@nagual.pp.ru> <20040731151944.GA23710@rogue.acs-et.com> <20040731153303.GA6471@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040731153303.GA6471@nagual.pp.ru> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/5.2-CURRENT (i386) cc: freebsd-rc@FreeBSD.ORG cc: current@FreeBSD.ORG Subject: Re: RFC: Alternate patch to have true new-style rc.d scripts in ports (without touching localpkg) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 15:44:07 -0000 On Sat, Jul 31, 2004 at 07:33:03PM +0400, Andrey Chernov wrote: > On Sat, Jul 31, 2004 at 06:19:44PM +0300, Mike Makonnen wrote: > > scripts that have a .sh, and those that don't. If you really want > > your script to be sourced in the same shell, then you give it a > > .sh extension. Otherwise, it will be sourced in a subshell. So, when > > It can make things even worse, what if someone rename his rc.subr-ed > script.sh to script.sh.old ? It was common practice in the past to not > execute anything without .sh at all. I think I already answered this in a previous thread, but here goes again. If it is an old style script (not rc.d) then it gets executed only if it has a .sh extension and it is executable. That has NOT changed. If it is an rc.d script then it gets executed only if the appropriate foo_enable knob is turned on. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !