Date: Wed, 15 Jun 2005 10:46:22 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: Vivek Khera <vivek@khera.org>, stable@freebsd.org Subject: Re: /usr/local/etc/rc.d/*.sh not working? Message-ID: <200506151046.23079.doconnor@gsoft.com.au> In-Reply-To: <6E39C810-AA1D-43AA-B2FA-CA8C387141CF@khera.org> References: <20050614150240.GA62949@bewilderbeast.blackhelicopters.org> <20050614151939.GA63065@bewilderbeast.blackhelicopters.org> <6E39C810-AA1D-43AA-B2FA-CA8C387141CF@khera.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506151046.23079.doconnor>