From owner-freebsd-questions Mon Nov 8 17:45:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id A4C5215345 for ; Mon, 8 Nov 1999 17:45:19 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id UAA39558; Mon, 8 Nov 1999 20:48:47 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199911090148.UAA39558@cc942873-a.ewndsr1.nj.home.com> Subject: Re: /etc/rc.local vs /usr/local/etc/rc.d/ In-Reply-To: <13D5F9EDFD72D211BC3100105A1C223305498B@akira.lanfear.com> from Marc Wandschneider at "Nov 8, 1999 05:11:51 pm" To: MarcW@Lanfear.com (Marc Wandschneider) Date: Mon, 8 Nov 1999 20:48:47 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Wandschneider wrote, > > > blaugh! > > so, I'm trying to set up xdm. I've looked on the > FreeBSD-questions archive on www.freebsd.org, and it suggests that i put > a few lines of code in: > > 1. /etc/rc.local > OR > 2. /usr/local/etc/rc.d > > Problem is, i have neither of these files. > > Should I create them? Is there some new location that has > superseded these? If I create these, how can I be sure they're > executed? In /etc/defaults/rc.conf, we have the following, local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. And in /etc/rc, we have, % more /etc/rc . . . # for each valid dir in $local_startup, search for init scripts matching *.sh if [ "X${local_startup}" != X"NO" ]; then echo -n 'Local package initialization:' for dir in ${local_startup}; do [ -d ${dir} ] && for script in ${dir}/*.sh; do [ -x ${script} ] && \ (set -T ; trap 'exit 1' 2 ; ${script} start) done done echo . fi . . . if [ -f /etc/rc.local ]; then echo -n 'starting local daemons:' sh /etc/rc.local echo '.' fi . . . There's the code. Last I was told, the SysV-style /etc/local/etc/rc.d was prefered over /etc/rc.local. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message