From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G9qxt-0004zj-6y for garchives@archives.gentoo.org; Sun, 06 Aug 2006 22:19:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k76MFQGV026432; Sun, 6 Aug 2006 22:15:26 GMT Received: from mail.flashtek-uk.com (flashtek-uk.com [80.68.89.119]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k76MFQ8l028077 for ; Sun, 6 Aug 2006 22:15:26 GMT Received: from [192.168.2.2] ([::ffff:82.32.240.124]) (AUTH: PLAIN neil@flashtek-uk.com, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by flashtek-uk.com with esmtp; Sun, 06 Aug 2006 23:15:21 +0100 id 000680EB.44D669F9.00002219 Message-ID: <44D669F5.2000402@flashtek-uk.com> Date: Sun, 06 Aug 2006 23:15:17 +0100 From: Neil Stone Organization: FlashTek UK User-Agent: Thunderbird 1.5.0.5 (X11/20060802) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: cupsd wont start on boot. References: <44D352E7.5070907@ercbroadband.org> <200608061746.39247.pauldv@gentoo.org> In-Reply-To: <200608061746.39247.pauldv@gentoo.org> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=92A0CF14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 26cb0baa-1e46-4a8d-8c27-75425cdf040a X-Archives-Hash: 97ab5752af06fb50122190eacdaa792a -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul de Vrieze wrote: > On Saturday 05 August 2006 07:50, Duncan wrote: >> If it's the exact same line both places, one works, the other doesn't, >> it's almost certainly due to the difference in environment. The >> environment passed to the one started from initscript will be rather more >> limited than a fully interactive bash prompt environment. >> >> I'd suggest you put a debug statement in the initscript, right before the >> command executes, that prints the environment to one file and the exported >> environment to another. Diff those against the same output from the >> command line that works right, and you'll have a good start on tracking >> down the culprit, since you'll have all the differences nicely listed, in >> ordered to check. > > Additionally many init scripts use start-stop-daemon with the --quiet command > line option. This suppresses all output from the command used. In this case > we would like to see this output so remove "--quiet" from the init script. > > Paul > what happens if you invoke the init script directly, ie not running the commands contained within the script... /etc/init.d/cupsd start for example - -- Neil Stone Systems Administrator FlashTek UK - -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT d+(++) s: a-(?) C++++(--) UL++++$ P+ L+++ E- W+++ N+ o+ w--- O M PS+ Y+ PGP++ t+ 5+ X+ R+ tv+ b- DI++ D+++ G e h--- r+++ y++++(**) - -----END GEEK CODE BLOCK----- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE1mn1z3Av8JKgzxQRAmxZAKCVMrcPvKCeFdG3UaCrbNZuS97aDACgsZmt SeSCaw8XjSJX/xfs3N7TQV8= =lI9m -----END PGP SIGNATURE----- -- gentoo-amd64@gentoo.org mailing list