Date: Tue, 27 Jul 2004 02:08:21 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: Joe Marcus Clarke <marcus@FreeBSD.org> Cc: mtm@FreeBSD.org Subject: Re: [Fwd: Recent changes to rc.d on -CURRENT] Message-ID: <20040726220821.GA80533@nagual.pp.ru> In-Reply-To: <1090878694.6881.78.camel@shumai.marcuscom.com> References: <1090870254.6881.31.camel@shumai.marcuscom.com> <20040726193539.GA76196@nagual.pp.ru> <1090871921.6881.49.camel@shumai.marcuscom.com> <20040726214357.GA80423@nagual.pp.ru> <1090878694.6881.78.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 26, 2004 at 05:51:35PM -0400, Joe Marcus Clarke wrote: > > Yes, they are unset, but I still see > > *.sh) # run in current shell > > set $_arg ; . $_file > > in run_rc_script(). > > It means=20 > > eval /usr/bin/limits -e -U www=20 > > will be invoked in the current shell once (when apache.sh will be=20 > > processed) and affect all following scripts. May I overlook something? >=20 > Sorry, I misunderstood. Yes, those limits would be inherited until > another script adjusted them. Why not override the start_cmd, and run: >=20 > /usr/bin/limits -e -U www ${command} >=20 > That said, portmgr is working on a better solution for problems like > this. Of course, it will be workaround, but IMHO current approach is mistake and= =20 effectively cuts down usefulness of start_precmd etc. things. Moreover,=20 some single buggy script installed can ruin all following scripts.=20 Previous separate subshell way does right thing, i.e. buggy script can=20 ruin only its own subshell. Better to back this change out. --=20 Andrey Chernov | http://ache.pp.ru/ --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQQWA1eJgpPLZnQjrAQFR/AQA4JCKdorNtn8qQh/mP4f5QLJLT0a0FN41 33BzLAoAG0ooL1fKD9UazLCZ9bIOyfTZwoGWgTqUGO6wto4LRPMfVWDDMvJiyQVx /1fZmyDywF2s34T8lvXmwTjGdYFm/sZpU9ngGjlUc2KiSk9BoDsVnLPeGMyJB589 kLMuDqmAHqw= =6+T/ -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040726220821.GA80533>