From owner-freebsd-stable@FreeBSD.ORG Tue Jun 20 16:41:36 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD52816A474 for ; Tue, 20 Jun 2006 16:41:36 +0000 (UTC) (envelope-from M.Hirsch@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id CE85B43D6E for ; Tue, 20 Jun 2006 16:41:32 +0000 (GMT) (envelope-from M.Hirsch@gmx.de) Received: (qmail invoked by alias); 20 Jun 2006 16:41:31 -0000 Received: from HSI-KBW-085-216-025-126.hsi.kabelbw.de (EHLO [192.168.101.121]) [85.216.25.126] by mail.gmx.net (mp023) with SMTP; 20 Jun 2006 18:41:31 +0200 X-Authenticated: #820862 Message-ID: <44982538.3000807@gmx.de> Date: Tue, 20 Jun 2006 18:41:28 +0200 From: "M.Hirsch" User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 References: <449823A0.2020602@gmx.de> In-Reply-To: <449823A0.2020602@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: "\[LoN\]Kamikaze" , freebsd-stable@freebsd.org Subject: Re: Question about current rc scripts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 16:41:36 -0000 Yes, I think this is the solution. It seems to depend on the filename, specifically the ".sh" extension. CODE (in /etc/rc): /etc/rc.d/*.sh) # run in current shell Thanks, I am testing this now. I'll post back as soon as I got results (1h or so...) M. [LoN]Kamikaze schrieb: >If your scripts name ends with .sh it will be sourced into the process and all variables set there will prevail (this feature only works in /etc/rc.d). If you do this you must not use the exit command anywhere in your script. > >