Re: [gentoo-user] debugging init scripts

2007-07-15 Thread Iain Buchanan
On Mon, 2007-07-16 at 02:13 +0100, Ian Hastie wrote: > On Mon, 16 Jul 2007 09:37:26 +0930 > Iain Buchanan <[EMAIL PROTECTED]> wrote: > > > it's a funny workaround, but sometimes you have to type > > > > cat file | less > > > > to stop less being "intelligent". Or you could disable it's input >

Re: [gentoo-user] debugging init scripts

2007-07-15 Thread Ian Hastie
On Mon, 16 Jul 2007 09:37:26 +0930 Iain Buchanan <[EMAIL PROTECTED]> wrote: > it's a funny workaround, but sometimes you have to type > > cat file | less > > to stop less being "intelligent". Or you could disable it's input > preprocessor: > > LESSOPEN="" less /usr/bin/echo-client-2 Or you ca

Re: [gentoo-user] debugging init scripts

2007-07-15 Thread Iain Buchanan
On Thu, 2007-07-12 at 13:06 -0400, Thomas Tuttle wrote: > And as for less thinking it's a binary file, that's because the Gentoo > initscripts change the text color using escape codes, which are > considered binary by less. (Specifically, the escape character, ASCII > 27, is probably considered b

Re: [gentoo-user] debugging init scripts

2007-07-12 Thread Thomas Tuttle
On Thu, 12 Jul 2007 17:15:40 +0100, "Uwe Thiem" <[EMAIL PROTECTED]> said: > On 12 July 2007, Frank Wilson wrote: > > I'm trying to debug an init script / daemon I'm trying to run. I can't > > seem to print the debug output to print to a file. For example I > > enter: > > > > /etc/init.d/apache2 re

Re: [gentoo-user] debugging init scripts

2007-07-12 Thread Uwe Thiem
On 12 July 2007, Frank Wilson wrote: > I'm trying to debug an init script / daemon I'm trying to run. I can't > seem to print the debug output to print to a file. For example I > enter: > > /etc/init.d/apache2 restart --debug >> /root/apache2.debug > > or > > /etc/init.d/apache2 restart --debug >