Date: Mon, 8 Nov 1999 20:48:47 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: MarcW@Lanfear.com (Marc Wandschneider) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/rc.local vs /usr/local/etc/rc.d/ Message-ID: <199911090148.UAA39558@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <13D5F9EDFD72D211BC3100105A1C223305498B@akira.lanfear.com> from Marc Wandschneider at "Nov 8, 1999 05:11:51 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911090148.UAA39558>