Re: Disk is cheap?

Hacksaw (hacksaw@hacksaw.org)
Tue, 06 Feb 2001 10:28:44 -0500


> On Sam, 03 Feb 2001 you wrote:
> > Actually, most of that time is spent running bash/sleep 1. Startup
> > scripts tend to be poorly designed.
>
> Yes!

I'm not so sure. I'm using RedHat 6.2, and it seems the only time a startup script calls sleep is when it gives you a chance to do interactive startup, and when you are looking for an NIS server. You could certainly remove those.

All the other calls to sleep are in the stop sections, where you want to make sure the thing died before proceeding.

But paring down the startup scripts is a good idea. For something like an embedded device, you might even want to go with a custom init, that just runs your main program.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/