From owner-freebsd-questions Mon Apr 13 15:35:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07987 for freebsd-questions-outgoing; Mon, 13 Apr 1998 15:35:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA07928 for ; Mon, 13 Apr 1998 22:34:07 GMT (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id BAA19673; Tue, 14 Apr 1998 01:33:59 +0300 (EEST) (envelope-from ru) Message-ID: <19980414013359.26683@ucb.crimea.ua> Date: Tue, 14 Apr 1998 01:33:59 +0300 From: Ruslan Ermilov To: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/rc.local vs. /usr/local/etc/rc.d vs. ??? Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <199804132216.PAA01636@pau-amma.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199804132216.PAA01636@pau-amma.whistle.com>; from David Wolfskill on Mon, Apr 13, 1998 at 03:16:28PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Apr 13, 1998 at 03:16:28PM -0700, David Wolfskill wrote: > Maybe I need to rent a clue.... > > I just replaced our main NFS server with one ruuning FreeBSD 2.2.6-RELEASE. > (Old machine had been running 2.1.0-RELEASE.) > > This particular machine was also running a couple of other things -- a > Web server & a samba server. > > Now, we use /usr/local for site-specific (vs. machine-specific) things. > > This machine exports a filesystem that most machines import as /usr/local. > > We also would like to use programs &c. that are on this filesystem from > this machine's /usr/local; therefore, that filesystem also appears on > this machine as /usr/local. > > However, if I put the initialization stuff for the machine-specific > servers in /usr/local/etc/rc.d, every machine on the net sees that, > and tries to start them up at boot time. > > This really is not what I'd prefer to do. > > So, for now, I've gone back to the (deprecated) /etc/rc.local for this > purpose. > > Suggestions for ways to do this that are likely to work while keeping > some reasonable semblance of conformity to rational expectations of > How Things Ought To Be Done would be most welcome. > I have an idea! Change your rc.conf files: local_startup="/usr/local/etc/rc.d /usr/local/etc/rc.d/${hostname} /usr/X11R6/etc/rc.d" Then put the staff that should be started on each machine in rc.d directory, and put the staff for machine myname.my.domain into rc.d/myname.my.domain. Regards, -- Ruslan Ermilov System Administrator ru@ucb.crimea.ua United Commercial Bank +380-652-247647 Simferopol, Crimea 2426679 ICQ Network, UIN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message