Date: Wed, 7 Mar 2007 22:02:34 +0100 From: Roland Smith <rsmith@xs4all.nl> To: "Don O'Neil" <lists@lizardhill.com> Cc: 'FreeBSD Questions' <freebsd-questions@freebsd.org> Subject: Re: /usr/local/etc/rc.d startup scripts Message-ID: <20070307210234.GA6253@slackbox.xs4all.nl> In-Reply-To: <00f901c760ea$9461ce40$0700020a@mickey> References: <00f901c760ea$9461ce40$0700020a@mickey>
next in thread | previous in thread | raw e-mail | index | archive | help
--5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 07, 2007 at 10:58:22AM -0800, Don O'Neil wrote: > Are there any special naming requirements for scripts in /usr/local/etc/r= c.d > for 6.1? >=20 > Someone is telling me they need to have a .sh suffix to startup correctly, > but in past versions of FreeBSD anything you put in there would run as lo= ng > as it was executable. You can do both, see rc(8). If you use the .sh extension, the script will be executed by the current shell, while those without will be run in a subshell (which is probably what you want). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (FreeBSD) iD8DBQFF7yhqEnfvsMMhpyURAn46AJwJT/N7IYIEgfNRfKTGCwimwBmKrwCfWkzu clXHGiQ84gxfBSk1H8ipwq4= =/53J -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070307210234.GA6253>