From owner-freebsd-questions@FreeBSD.ORG Sun Dec 24 00:01:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6679D16A407 for ; Sun, 24 Dec 2006 00:01:40 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 044C713C44E for ; Sun, 24 Dec 2006 00:01:39 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so2830140uge for ; Sat, 23 Dec 2006 16:01:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=SOlJ+cKzViEU99QnWDvOX1jdHp1jTwLHZuAsSm0ETqxyuYk3+FQh5lWbB3tgN74jijFhMzc//l6Mhs3scT5Wrw1uPV+6qUfYbXi0C+O7lGdWLUez46xHUAQ4I2Ki01Zgax6X0oAS3dBtTvuzXB8XezylrV2TBTq5ni4kvOmEPAc= Received: by 10.78.171.20 with SMTP id t20mr1031227hue.1166916846153; Sat, 23 Dec 2006 15:34:06 -0800 (PST) Received: by 10.78.167.16 with HTTP; Sat, 23 Dec 2006 15:34:06 -0800 (PST) Message-ID: Date: Sun, 24 Dec 2006 02:34:06 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Michael P. Soulier" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 1f1ee1634c3b43a7 Cc: FreeBSD Questions Subject: Re: where are /usr/local/etc/rc.d init scripts run from? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Dec 2006 00:01:40 -0000 On 12/24/06, Michael P. Soulier 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