where are /usr/local/etc/rc.d init scripts run from?

Andrew Pantyukhin infofarmer at FreeBSD.org
Sat Dec 23 16:01:40 PST 2006


On 12/24/06, Michael P. Soulier <msoulier at digitaltorque.ca> wrote:
> I was looking in /etc/rc, and it's obvious to see where the /etc/rc.d
> scripts are run from.
>
> skip="-s nostart"
> [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] && skip="$skip -s nojail"
> files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null`
>
> for _rc_elem in ${files}; do
>         run_rc_script ${_rc_elem} ${_boot}
> done
>
> So rcorder is run over /etc/rc.d/*.
>
> When is the same done for /usr/local/etc/rc.d/*?

1. grep for rcorder in rc
2. grep for local_rc in rc.subr


More information about the freebsd-questions mailing list