From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 21:02:38 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBE3D16A403 for ; Wed, 7 Mar 2007 21:02:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by mx1.freebsd.org (Postfix) with ESMTP id 84AB213C494 for ; Wed, 7 Mar 2007 21:02:36 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id l27L2YYp018358; Wed, 7 Mar 2007 22:02:35 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 4D769B82B; Wed, 7 Mar 2007 22:02:34 +0100 (CET) Date: Wed, 7 Mar 2007 22:02:34 +0100 From: Roland Smith To: "Don O'Neil" Message-ID: <20070307210234.GA6253@slackbox.xs4all.nl> Mail-Followup-To: Don O'Neil , 'FreeBSD Questions' References: <00f901c760ea$9461ce40$0700020a@mickey> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <00f901c760ea$9461ce40$0700020a@mickey> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: 'FreeBSD Questions' Subject: Re: /usr/local/etc/rc.d startup scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 21:02:39 -0000 --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--