Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2006 18:25:08 +0200
From:      Christoph Schug <chris+freebsd-stable@schug.net>
To:        "M.Hirsch" <M.Hirsch@gmx.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Question about current rc scripts
Message-ID:  <20060622162508.GA30833@voodoo.schug.net>
In-Reply-To: <44982927.7050101@gmx.de>
References:  <E1Fsj3P-0007mN-BE@dilbert.firstcallgroup.co.uk> <449823A0.2020602@gmx.de> <44982538.3000807@gmx.de> <4498275F.3060901@gmx.de> <20060620165237.GA10659@odin.ac.hmc.edu> <44982927.7050101@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060622162508.GA30833>