From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1268 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 run script Date: Fri, 6 Oct 2006 18:57:24 +0300 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061006155724.GE7053@home.power> References: <20061001092939.GA1057@heinlein.local> <20061005235825.GB7053@home.power> <20061006153719.GC7053@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160150264 19532 80.91.229.2 (6 Oct 2006 15:57:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 15:57:44 +0000 (UTC) Original-X-From: supervision-return-1504-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 17:57:40 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GVs4Y-0007tE-VI for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 17:57:17 +0200 Original-Received: (qmail 19917 invoked by uid 76); 6 Oct 2006 15:57:36 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 19911 invoked from network); 6 Oct 2006 15:57:36 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1268 Archived-At: Hi! On Fri, Oct 06, 2006 at 11:46:29AM -0400, Charlie Brady wrote: > >exec env -i PATH=$PATH LD_PRELOAD=libREV.so \ > > apache2 -DNO_DETACH -k start -DDOC -DSSL -DFASTCGI # -DPHP4 > ... > > I don't see any advantage over: > > export LD_PRELOAD=libREV.so > exec apache2 -DNO_DETACH -k start -DDOC -DSSL -DFASTCGI # -DPHP4 This way there a chance to occasionally add some commands between export and exec lines. This may result in accessing wrong files in these commands because of libREV. > LD_PRELOAD=libREV.so exec apache2 -DNO_DETACH -k start \ > -DDOC -DSSL -DFASTCGI # -DPHP4 Yeah, this is acceptable, but I prefer to have 'exec' word in beginning of line to make scripts ease to read/understand. Anyway. Why you dislike `env -i` so much to invent all these alternatives? :) For me `env` is good small program which doing it small task good enough: env - run a program in a modified environment In my ./run I need to 'run a program in a modified environment' so I've used `env`. What's wrong with this? -- WBR, Alex.