Re: LSB rc script installer requirements #1
[I have yet to subscribe to lsb-spec - please Cc: replies to me]
On Sat, Mar 27, 1999 at 10:12:31AM -0500, email@example.com wrote:
> Now, why bother with groups at all and not just use dependencies? It's
> my experience that this would probably cause more confusion and problems
> than it's worth. An ISV (or me, for that matter) would have to decide
> exactly which daemons the app required to be running first, then list
> those as pre-reqs, then risk those already depending on one another or
> causing circular problems by not understanding what really does need to
> start first. Perhaps others have thoughts on ways that dependencies only
> might work.
Thanks to Anthony Towns and Richard Braakman, we have code to do
dependancy-based startup, including parallelization support, and support for
virtual scripts (ala dpkg's virtual dependancies)
It's in the form of a utility called run-scripts, which reads the headers of
a shell/perl/whatever script to be run (currently doesn't work with compiled
binary startup scripts :) calculates their dependancies, and executes them
in order, falling back to the SXXfoo/KXXfoo alphabetical order if a script
has no header, but still optimizing where possible (f.e. parallelizing all
S20* scripts, and parallelizing scripts with dependancies)
run-scripts is then called by a modified /etc/init.d/rc.
If dependancies cannot be fulfilled, they are ignored.
The typical script looks something like:
# Name: checkfs
# Needs: sysklogd
# Provides: read-write-rootfs
# Do usual stuff here
Code is available at:
I've successfully tested it on my system and it does boot/shutdown
Robert Woodcock - firstname.lastname@example.org
"Life is sweat." -- Wichert Akkerman, typos and all.