From owner-freebsd-questions Tue Nov 6 6:45:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 106FB37B418 for ; Tue, 6 Nov 2001 06:45:49 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 6 Nov 2001 14:45:41 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1617Sa-0004we-00; Tue, 06 Nov 2001 14:44:16 +0000 Date: Tue, 6 Nov 2001 14:44:15 +0000 (GMT) From: Jan Grant X-X-Sender: To: Odhiambo Washington Cc: FBSD-Q Subject: Re: OT: Oracle In-Reply-To: <20011106153339.E60138@ns2.wananchi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 6 Nov 2001, Odhiambo Washington wrote: > I have a problem (BIG) for which I hope someone here has a solution. I'm asking > this here because of a new terminology that I just learnt while treading on the > alien world of Linux. > > We have a machine that runs Oracle. I am trying to get Oracle to be started > automatically when the machine reboots. That machine is Redhead (Redhat) 6.2 > and Oracle is 8.0.5 and I've managed but without understanding why I was doing > certain things, particularly the symlinking. One has to link a control script > in at least 5 directories.. > > ln -s /path/to/scriptx /etc/rc.d/rc0.d/Kscriptx, > ln -s /path/to/scriptx /etc/rc.d/rc0.d/Sscriptx > > Now I find life quite easy with FreeBSD because all I have to do is stick the control > script in /usr/local/etc/rc.d/ in most cases (because I don't use rc.local) and things > just work - voila!. > > In this other world of Linux there are some things called 'run levels': Do we also > have run levels in FreeBSD??? Not in the SysV sense, no. Forgive me for channelling Abigail, but I can't see the FreeBSD problem here :-) For your Linux setup, the machine will generally run in RL3 (multiuser mode) - so you'll need an "S??oracle" link in /etc/rc.d/rc3.d; K links in rc[012356].d; symlinks aren't required; you can just copy the files around - they (or hard links) are used because that way, you only have to maintain one copy of the startup script (in /etc/rc.d/init.d) to have all the symlinked versions track it. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk ( echo "ouroboros"; cat ) > /dev/fd/0 # it's like talking to yourself sometimes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message