From owner-freebsd-stable@FreeBSD.ORG Tue Jun 14 16:11:31 2005 Return-Path: X-Original-To: freebsd-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 1AF8C16A41C for ; Tue, 14 Jun 2005 16:11:31 +0000 (GMT) (envelope-from eti@erata.net) Received: from s4.nc99.net (s4.nc99.net [65.98.58.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C075B43D1D for ; Tue, 14 Jun 2005 16:11:30 +0000 (GMT) (envelope-from eti@erata.net) Received: (qmail 19375 invoked from network); 14 Jun 2005 12:11:29 -0400 Received: from 223.126.77.82.in-addr.arpa.cluj.rdsnet.ro (HELO ?10.10.10.5?) (82.77.126.223) by s4.nc99.net with (RC4-MD5 encrypted) SMTP; 14 Jun 2005 12:11:29 -0400 From: Iulian M Organization: Perlica Technologies To: freebsd-stable@freebsd.org Date: Tue, 14 Jun 2005 19:10:50 +0300 User-Agent: KMail/1.8 References: <20050614150240.GA62949@bewilderbeast.blackhelicopters.org> <590EEFC5-8D42-40F3-B723-F62F478D09D0@khera.org> <20050614155836.GA63382@bewilderbeast.blackhelicopters.org> In-Reply-To: <20050614155836.GA63382@bewilderbeast.blackhelicopters.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3540760.CriSk3AS1z"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506141910.54494.eti@erata.net> 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: Tue, 14 Jun 2005 16:11:31 -0000 --nextPart3540760.CriSk3AS1z Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 14 June 2005 18:58, Michael W. Lucas wrote: > On Tue, Jun 14, 2005 at 11:22:07AM -0400, Vivek Khera wrote: > > On Jun 14, 2005, at 11:10 AM, K?vesd?n G?bor wrote: > > >For scripts in /usr/local/etc/rc.d You should add an entry to /etc/ > > >rc.conf. > > >For example, if You script is somedaemon.sh, then add > > >somedaemon_enable=3D'YES' to /etc/rc.conf and it will run at the next > > >boot. > > > > but his scripts don't use rc-ng, so this is pointless. > > > > they should just work if they end in .sh and are executable. > > And this is the million-dollar question: should they? Two things > could be causing this behavior: > > a) old-style .sh scripts are not supported, Michael needs to rewrite them > for rcNG b) old-style .sh scripts are supported, Michael has some other > system problem > > If a), fine. If b), though, I need to really start digging. Anyone > here know the definitive answer? > Well beeing new ( and only testing ) to 5.4-stable i can't say for sure but= i=20 think /etc/localpkg know better :) in /etc/defaults/rc.conf : local_startup=3D"/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" so the default should be ok if you don't change it in /etc/rc.conf from /etc/localpkg ( src updated a few days ago) : # $FreeBSD: src/etc/rc.d/localpkg,v 1.4.2.1 2004/10/10 09:50:53 mtm Exp $ # =2E......... for script in ${dir}/*.sh; do <--- so it should load all the *.sh files slist=3D"${slist}${script_name_sep}${script}" done =2E........... for script in ${slist}; do if [ -x "${script}" ]; then <-- if the file is executable start it= =20 (set -T trap 'exit 1' 2 ${script} start) =2E............. from what i see the procedure hasn't changed much since 4.X > Thanks for all the help and suggestions, > > =3D=3Dml =2D-=20 The world is coming to an end! Repent and return those library books! --nextPart3540760.CriSk3AS1z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBCrwGOE4semV9hLhcRArmaAJ4ut5YgGHVpwavJc1hbFAmrXj6IFQCfaFtb K0lGgXtWaBV6eTcGB2wBXP8= =EPWq -----END PGP SIGNATURE----- --nextPart3540760.CriSk3AS1z--