LWN.net Logo

Gentoo init scripts

Gentoo init scripts

Posted Mar 20, 2003 10:28 UTC (Thu) by shane (subscriber, #3335)
Parent article: A quick look at Gentoo Linux

though things like the init script system take a little getting used to

I love the Gentoo init script system. It's the first real improvement in startup scripts in Unix-land since System V!

The idea is that each script in /etc/init.d/ documents the dependencies at the beginning, and the startup script figures out the proper order to run each script. Even better, if a dependency fails (e.g. DNS), then scripts that require that service won't run - no more cascading failures! Nice.

I don't know if it does it yet, but boot time could be improved by running a certain number of scripts in parallel, since dependencies are known.

This is the kind of innovation that is possible with a large number of distributions revisiting "solved" issues.


(Log in to post comments)

Gentoo init scripts

Posted Mar 21, 2003 2:36 UTC (Fri) by Baylink (guest, #755) [Link]

I'm not fond of "better F'n ideas" on the initscript front (too many packages make assumptions about the SysVil approach which will break if you don't follow it), but this seems like it might be a winner.

I'll have to look at it -- thanks for the pointer.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds