Petter Reinholdtsen <[EMAIL PROTECTED]> wrote: > > Package: mpd > Version: 0.13.0-5 > Tags: patch > User: [EMAIL PROTECTED] > Usertags: missing-dependency > > To be able to check boot script order, and also to be able to start > boot scripts in parallel, it is important to know the dependencies of > the various boot scripts. The Linux Software Base specifies a init.d > header file format useful for this purpose, and adding such header to > the init.d script would make it possible for me to use this > information to check the current sequence and to speed up the debian > boot. > > I am working on a system to update the boot sequence based on these > dependencies, and would like see this as the default in Lenny. > Because of this, it is nice if the dependencies was updated quickly. > > <URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html> > documents the LSB header format. Some debian notes are available from > <URL:http://wiki.debian.org/LSBInitScripts>. > > Here is a patch to document the dependencies. I hope this is correct. > > diff -ur mpd-0.13.0.orig/debian/mpd.init.d mpd-0.13.0/debian/mpd.init.d > --- mpd-0.13.0.orig/debian/mpd.init.d 2007-12-30 22:33:07.000000000 +0100 > +++ mpd-0.13.0/debian/mpd.init.d 2007-12-30 22:37:47.000000000 +0100 > @@ -1,4 +1,11 @@ > #!/bin/sh -e > +### BEGIN INIT INFO > +# Provides: mpd > +# Required-Start: $remote_fs > +# Required-Stop: $remote_fs
Decklin: I would also suggest all the output dependencies[1] mpd is capable of writing to as Should-Start/Should-Stop dependencies here, too. This is because mpd can use a state_file and automatically start playing where it left off, and those devices should be ready. [1] alsa, oss, jack, pulseaudio, icecast, esd, etc... > +# Default-Start: 2 3 4 5 > +# Default-Stop: 0 1 6 > +### END INIT INFO > > if [ -n "$MPD_DEBUG" ]; then > set -x -- Eric Wong -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]