From owner-freebsd-stable@FreeBSD.ORG Thu Jun 22 16:24:34 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 C43FC16A479 for ; Thu, 22 Jun 2006 16:24:34 +0000 (UTC) (envelope-from cs@schug.net) Received: from schug.net (schug.net [195.27.130.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DAFA44317 for ; Thu, 22 Jun 2006 16:24:34 +0000 (GMT) (envelope-from cs@schug.net) Received: by schug.net (Postfix, from userid 10000) id A6027C56A8; Thu, 22 Jun 2006 18:25:08 +0200 (CEST) Date: Thu, 22 Jun 2006 18:25:08 +0200 From: Christoph Schug To: "M.Hirsch" Message-ID: <20060622162508.GA30833@voodoo.schug.net> References: <449823A0.2020602@gmx.de> <44982538.3000807@gmx.de> <4498275F.3060901@gmx.de> <20060620165237.GA10659@odin.ac.hmc.edu> <44982927.7050101@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44982927.7050101@gmx.de> User-Agent: Mutt/1.4.2.1i Organization: SpaceNet AG Cc: 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: Thu, 22 Jun 2006 16:24:34 -0000 On Tue, Jun 20, 2006, M.Hirsch wrote: > As stated in my initial post, I used "BEFORE: rcconf" up to and > including 6.0. > > So what is an "appropriate BEFORE entry" for 6-STABLE? This might be a crude hack but _should_ (untested) work. What about wrapping rcorder like this ... /usr/local/sbin/rcorder.local | #!/bin/sh | echo '/very/first/rcscript' | exec /sbin/rcorder "$@" and inject it using an alias in rc.conf rc.conf: : | alias rcorder='/usr/local/sbin/rcorder.local' : Since /very/first/rcscript will be called during system shutdown as well, it might be reasonable to have a 'faststart' case statement in place | case "$1" in | faststart ) ... ;; | esac Hope this helps (and actually works) -cs