FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-30-2010, 09:47 PM
Victor Lowther
 
Default Save error messages to /dev/tty9.

---
functions | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/functions b/functions
index 9ec8b5e..f1dce8a 100644
--- a/functions
+++ b/functions
@@ -4,6 +4,10 @@

# width:

+grep -q initdebug && {
+ exec 2>/dev/tty9
+}
+
STAT_COL=80
if [[ ! -t 1 ]]; then
USECOLOR=""
--
1.7.1
 
Old 07-02-2010, 09:48 AM
"Kurt J. Bosch"
 
Default Save error messages to /dev/tty9.

Am 2010-06-30 23:47, schrieb Victor Lowther:

---
functions | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/functions b/functions
index 9ec8b5e..f1dce8a 100644
--- a/functions
+++ b/functions
@@ -4,6 +4,10 @@

# width:

+grep -q initdebug&& {
+ exec 2>/dev/tty9
+}
+


Hmm, won't this cause a read from stdin when starting/stopping daemons
manually in a terminal?



STAT_COL=80
if [[ ! -t 1 ]]; then
USECOLOR=""
 
Old 07-02-2010, 10:58 AM
Victor Lowther
 
Default Save error messages to /dev/tty9.

On Jul 2, 2010, at 4:48 AM, "Kurt J. Bosch" <kjb-
temp-2009@alpenjodel.de> wrote:



Am 2010-06-30 23:47, schrieb Victor Lowther:

---
functions | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/functions b/functions
index 9ec8b5e..f1dce8a 100644
--- a/functions
+++ b/functions
@@ -4,6 +4,10 @@

# width:

+grep -q initdebug&& {
+ exec 2>/dev/tty9
+}
+


Hmm, won't this cause a read from stdin when starting/stopping
daemons manually in a terminal?


It gets fixed in the next patch.




STAT_COL=80
if [[ ! -t 1 ]]; then
USECOLOR=""
 
Old 07-16-2010, 12:09 PM
Thomas Bächler
 
Default Save error messages to /dev/tty9.

Am 30.06.2010 23:47, schrieb Victor Lowther:
> ---
> functions | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/functions b/functions
> index 9ec8b5e..f1dce8a 100644
> --- a/functions
> +++ b/functions
> @@ -4,6 +4,10 @@
>
> # width:
>
> +grep -q initdebug && {
> + exec 2>/dev/tty9
> +}
> +
> STAT_COL=80
> if [[ ! -t 1 ]]; then
> USECOLOR=""

Apart from Kurt's comment:

Won't this cause errors to be omitted from the console? I'd much rather
implement a full boot logging using bootlogd, but last time I tried, it
was broken. Redirecting stderr away from the normal output seems
unhelpful, and unecessary.

I'd much rather omit this in favor of a patch that adds proper boot
logging, which is a feature we really need.
 
Old 07-17-2010, 02:09 PM
Victor Lowther
 
Default Save error messages to /dev/tty9.

On Fri, 2010-07-16 at 14:09 +0200, Thomas Bächler wrote:
> Am 30.06.2010 23:47, schrieb Victor Lowther:
> > ---
> > functions | 4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> >
> > diff --git a/functions b/functions
> > index 9ec8b5e..f1dce8a 100644
> > --- a/functions
> > +++ b/functions
> > @@ -4,6 +4,10 @@
> >
> > # width:
> >
> > +grep -q initdebug && {
> > + exec 2>/dev/tty9
> > +}
> > +
> > STAT_COL=80
> > if [[ ! -t 1 ]]; then
> > USECOLOR=""
>
> Apart from Kurt's comment:
>
> Won't this cause errors to be omitted from the console? I'd much rather
> implement a full boot logging using bootlogd, but last time I tried, it
> was broken. Redirecting stderr away from the normal output seems
> unhelpful, and unecessary.

The intent was to redirect the errors to be redirected to tty9 -- when I
was debugging these scripts, syntax errors kept getting nuked by the
gettys and X starting up, so putting them on a tty that was not running
a getty seemed like the easiest solution.

> I'd much rather omit this in favor of a patch that adds proper boot
> logging, which is a feature we really need.

No problem. The bashification-redux branch @
git://fnordovax.org/~victor/arch-initscripts has this as the last patch
to make it easy to drop.


--
Victor Lowther
LPIC2 UCP RHCE
 

Thread Tools




All times are GMT. The time now is 07:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org