From owner-freebsd-questions Tue Jul 18 12:25:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 143FC37BA1D for ; Tue, 18 Jul 2000 12:25:36 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13Ecty-000DZY-00; Tue, 18 Jul 2000 20:19:34 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13Ecty-0009Cr-00; Tue, 18 Jul 2000 20:19:34 +0100 Date: Tue, 18 Jul 2000 20:19:34 +0100 From: Ben Smithurst To: Sam Carleton Cc: FreeBSD Questions Subject: Re: don't understand the /usr/local/etc/rc.d directory Message-ID: <20000718201934.G4668@strontium.scientia.demon.co.uk> References: <39749B4A.41A24A69@miltonstreet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="py13wRIzy9nU46ee" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39749B4A.41A24A69@miltonstreet.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --py13wRIzy9nU46ee Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sam Carleton wrote: > I have installed MySQL from the FreeBSD distribution and it placed the > startup files in /usr/local/etc/rc.d. MySQL does NOT start > automatically, though. Where is some documentation as to under how to > get things started at bootup, and equally important how to get things > shutdown when rebooting. Funny you should say that. :-) I'm working on an addition to the rc(8) manual page at the moment which should explain the rc.d stuff a bit. The important points are that files in rc.d directories must be executable and must match "*.sh". At startup, it's passed "start" as its argument, at shutdown in -CURRENT it's passed "stop" as its argument. In -STABLE and all releases, the rc.d scripts aren't run at shutdown time. --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / --py13wRIzy9nU46ee Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: fh17bVsunpGtcFVLsYIkOn/ot6hj/n4Q iQCUAwUBOXStxisPVtiZOS99AQGT2QP3Tk1JYSIrnDX8vPl3PrmghLfyEztFsyds DgdeyXnjI6O1LvTHfd+sY2w+qQnHM4jqhjXnMQ/ThxiPJK7DMyNm3kDKCkIbewU8 wLxwZLPHhn6xnLDc4nsmPgsS/slweAMWvP3oVtqga2kIdvAQtCLEDtVRRQm2vFyv AQOT8bVpiQ== =y1bX -----END PGP SIGNATURE----- --py13wRIzy9nU46ee-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message