Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4C1DD456 for ; Fri, 7 Sep 2012 18:44:27 +0000 (UTC) Received: (qmail 69653 invoked by uid 500); 7 Sep 2012 18:44:27 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 69620 invoked by uid 500); 7 Sep 2012 18:44:27 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 69612 invoked by uid 99); 7 Sep 2012 18:44:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 18:44:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.56] (HELO qmta06.emeryville.ca.mail.comcast.net) (76.96.30.56) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 18:44:19 +0000 Received: from omta09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by qmta06.emeryville.ca.mail.comcast.net with comcast id wJTZ1j0060S2fkCA6Jjxkg; Fri, 07 Sep 2012 18:43:57 +0000 Received: from boudnik.org ([24.4.185.157]) by omta09.emeryville.ca.mail.comcast.net with comcast id wJjw1j00J3QAh8g8VJjw0T; Fri, 07 Sep 2012 18:43:56 +0000 Received: from localhost (tpx.boudnik.org [192.168.102.148]) by boudnik.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q87Iht7u000961; Fri, 7 Sep 2012 11:43:56 -0700 Date: Fri, 7 Sep 2012 11:43:55 -0700 From: Konstantin Boudnik To: bigtop-dev@incubator.apache.org Cc: Sean Mackrory Subject: Re: running init.d scripts by hand vs. service(8) Message-ID: <20120907184355.GV3169@tpx> Mail-Followup-To: bigtop-dev@incubator.apache.org, Sean Mackrory References: <20120906004118.GD12794@linspire.com> <5049B510.5020608@apache.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8VKnE9k7k7imdYv5" Content-Disposition: inline In-Reply-To: <5049B510.5020608@apache.org> X-Organization: It's something of 'Cos X-PGP-Key: http://www.boudnik.org/~cos/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) --8VKnE9k7k7imdYv5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 07, 2012 at 01:49AM, Bruno Mah=D0=98 wrote: > On 09/06/2012 10:31 AM, Sean Mackrory wrote: > >+1 to Alejandro's idea. I like the having the ability to manually overri= de > >environment variables and invoke scripts as a developer. I'd be annoyed = if > >I used a service and it refused to start up without service or if it > >ignored my environment in an unnecessarily subtle way. That being said, > >since one of the benefits of using Bigtop is more out-of-the-box > >reliability and simplicity, I also like the idea of strongly encouraging > >users to use 1 supported method of service invocation. > > > >On Thu, Sep 6, 2012 at 9:15 AM, Alejandro Abdelnur wr= ote: > > > >>The verbosity would be there only when running the scripts outside of > >>service, to avoid YOU tripping again :) > >> > >>On Thu, Sep 6, 2012 at 9:11 AM, Roman Shaposhnik wrote: > >>>On Thu, Sep 6, 2012 at 8:14 AM, Alejandro Abdelnur > >>wrote: > >>>>I think is a desirable feature to be able to modify ENV then run start > >>>>the daemon directly. It may be handy on troubleshooting. > >>> > >>>As I said -- it is entirely possible we can all agree that this is a > >>feature. > >>> > >>>>I'd propose a modification to Cos' proposal, print a NICE BIG WARN > >>>>when starting the daemons without service(8) stating 'current ENV > >>>>settings may affect the daemon (Roman remember that)' > >>> > >>>I don't think I have a guaranteed way of detecting one vs. the other. > >>>/usr/bin/service happens to be a shell script that at the end of the > >>>day simply scrubs the environment and execs the actual init.d script: > >>> exec env -i LANG=3D"$LANG" PATH=3D"$PATH" TERM=3D"$TERM" > >>>"$SERVICEDIR/$SERVICE" ${ACTION} ${OPTIONS} > >>> > >>>Perhaps we can try to detect that we're NOT exec'ed by service via > >>>absence of things like HOME, etc. > >>> > >>>The question then becomes whether this is too much trouble and whether > >>>it'll make our scripts too verbose. > >>> > >>>Thanks, > >>>Roman. > >> > >> > >> > >>-- > >>Alejandro > >> > > >=20 > These scripts could be called in various ways and I am a little bit > worried about closing some doors. > What about having a consistent behavior of always scrubbing the > environment (so the script will always work by default), except when > some debugging variable/parameter is passed to it. > Hopefully people spend more time using these scripts than debugging them = :) Sounds good. Cos --8VKnE9k7k7imdYv5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iF4EAREIAAYFAlBKQGsACgkQenyFlstYjhJpfQEAs1cB69VAKKRn9R6CW937MO7K zIhEGxfnIh9RzO4iZTwBAOA4eUrTw1H8HFOlP2sp56vVo4TaIcQkfi+pJgik+kAO =qPPO -----END PGP SIGNATURE----- --8VKnE9k7k7imdYv5--