Question about current rc scripts

Christoph Schug chris+freebsd-stable at schug.net
Thu Jun 22 16:24:34 UTC 2006


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


More information about the freebsd-stable mailing list