Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 2006 02:34:06 +0300
From:      "Andrew Pantyukhin" <infofarmer@FreeBSD.org>
To:        "Michael P. Soulier" <msoulier@digitaltorque.ca>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: where are /usr/local/etc/rc.d init scripts run from?
Message-ID:  <cb5206420612231534o76d8e174u994726f133e41ea@mail.gmail.com>
In-Reply-To: <fb6605670612231515v7f05acdbxc0bebf5e009fd6ff@mail.gmail.com>
References:  <fb6605670612231515v7f05acdbxc0bebf5e009fd6ff@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/24/06, Michael P. Soulier <msoulier@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



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