From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 01:16:41 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD53616A41C; Wed, 15 Jun 2005 01:16:41 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D61443D53; Wed, 15 Jun 2005 01:16:40 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j5F1GQK4034224; Wed, 15 Jun 2005 10:46:26 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Wed, 15 Jun 2005 10:46:22 +0930 User-Agent: KMail/1.8 References: <20050614150240.GA62949@bewilderbeast.blackhelicopters.org> <20050614151939.GA63065@bewilderbeast.blackhelicopters.org> <6E39C810-AA1D-43AA-B2FA-CA8C387141CF@khera.org> In-Reply-To: <6E39C810-AA1D-43AA-B2FA-CA8C387141CF@khera.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2069042.fTXdQkkZnV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506151046.23079.doconnor@gsoft.com.au> X-Spam-Score: -2.4 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: Vivek Khera , stable@freebsd.org Subject: Re: /usr/local/etc/rc.d/*.sh not working? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2005 01:16:41 -0000 --nextPart2069042.fTXdQkkZnV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 15 Jun 2005 01:18, Vivek Khera wrote: > On Jun 14, 2005, at 11:19 AM, Michael W. Lucas wrote: > > For example, I have a server with about 400 separate MRTG daemons on > > it. (Yes, they must be separate, for administrative rather than > > technical reasons.) Each daemon has a custom script. These aren't > > ports, and they have no rcNG infrastructure. > > that many, eh... > > perhaps you're running into a shell command line limit somewhere > which does something like > > foreach i (/usr/local/etc/rc.d/*.sh) > > and having that glob expansion blowing up in the shell. find /usr/local/etc/rc.d -name \*.sh -exec {} start \; Although old style scripts SHOULD work if it ends in .sh and is executable. According to my reading of rc.subr - if they end in .sh they will be source= d=20 in the current shell, otherwise they will be sourced in a subshell.. Dunno = if=20 that is affecting things (see run_rc_script) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2069042.fTXdQkkZnV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCr4Fn5ZPcIHs/zowRAgDUAJ4mLYl6NiyCRpt3tnFjXGqCoPP9uQCgqCpd O4LdlgDJpdxwAHfbDADe/Zo= =3HM8 -----END PGP SIGNATURE----- --nextPart2069042.fTXdQkkZnV--