[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [logcheck] I hear you...



> On Sat, Nov 24, 2001 at 05:08:59PM -0800, Karl M. Hegbloom wrote:
> >  On the Empcoreour's New Red Hat machine, you can see right away, from
> >  across the room even, that either all services are started, or that
> >  some have failed.  On the Debian machine, you must read each message.
> >  The green [OK] lights are more than just eye candy -- they have
> >  practical utility as well.
>
> While I think this is a nice idea, I don't think it should be forced on
> anyone.
>
> >  I think we can take it a step or two farther than mere colored
> >  lights.  If all output goes not through "echo", but through a
> >  function or program, it can not only be formatted nicely, with a
> >  blank line between each script's output, for instance, it can be
> >  logged, next to the boot time dmesg log.  Both stderr and stdout must
> >  be logged there...  What other requirements and wishlists are there
> >  for this?
>
> The way I suggest is to simply standardize init.d scripts so that they
> return 0 for success and 1 for failure and otherwise work as they do now.
> Then someone can write a fancy-sysvinitrc that replaces the current startup
> loop with a program that execs the init.d scripts and attaches itself to
> STDOUT and STDERR and formats/colours appropriatly.
>
> This would mean people could write their own and play with it without
> forcing it on anybody else.
>
> Policy suggestion anyone?

Definitely the best idea that I've seen pass through my mailbox for
updating/improving the init script system. Adding a simple return 0 or
return 1 adds no major complexity to the scripts for those of us who arn't
interested in fancy coloring, yet gives others the capability.

Combine that with something along the lines of a # chkconfig 2345 75 25
line so that update-rc.d could automatically detect what runlevels and
priorities a script should start at, and Debian could have a very flexible
yet somewhat forgiving system.



Reply to: