From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MuuF0-0000Al-K9 for garchives@archives.gentoo.org; Mon, 05 Oct 2009 20:33:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A3ABE0936; Mon, 5 Oct 2009 20:33:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 01175E0936 for ; Mon, 5 Oct 2009 20:33:05 +0000 (UTC) Received: from [192.168.1.3] (pool-173-71-201-218.clppva.fios.verizon.net [173.71.201.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 2604267B15 for ; Mon, 5 Oct 2009 20:33:01 +0000 (UTC) Message-ID: <4ACA57FA.3040400@gentoo.org> Date: Mon, 05 Oct 2009 16:32:58 -0400 From: Jonathan Callen User-Agent: Thunderbird 2.0.0.23 (X11/20090902) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: python-wrapper breaks init scripts References: <200910042032.17789.hanno@gentoo.org> <200910042102.55750.Arfrever@gentoo.org> <4AC9A456.9000306@gentoo.org> In-Reply-To: <4AC9A456.9000306@gentoo.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 0dbf4df9-43ea-4857-88d4-95f8a1da55a9 X-Archives-Hash: 456ec70ea45c59af8a9239111a007197 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Haubenwallner wrote: > The problem here IMO is that this wrapper executes python2.6 with argv0 set > to python2.6, while it should be the argv0 from how the wrapper was executed. > At least this is what init.d scripts expect (seen with ntlmaps too). > > /haubi/ > Unfortunately, if argv[0] is *not* set to python2.6, it appears that some python programs crash, thereby making this a lose-lose proposition. I believe there is a way to make s-s-d stop a program by looking only at its pid, via a .pid file, which you may be able to use to work around the issue. - -- Jonathan Callen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrKV8sACgkQOypDUo0oQOog6QCg18/A06tmecCa/5L6r7qoKAO1 urAAoKIHKiZyKveYoDwCQZ/woeRQdwY/ =C9ao -----END PGP SIGNATURE-----