Bug#337640: [Pkg-cups-devel] Bug#337640: cupsys: Please add LSB formatted dependency info in init.d script

Martin-Éric Racine q-funk at iki.fi
Sun Nov 6 09:57:11 UTC 2005


la, 2005-11-05 kello 14:57 +0100, Petter Reinholdtsen kirjoitti:
> Package:  cupsys
> Version:  1.1.23-12
> Severity: wishlist
> 
> 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 scripts would make it possible for me to use this
> information to check the current sequence and speed up the debian
> boot.
> 
> <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 proposed dependency header to document the dependencies of
> cupsys.  It is slightly tested using the insserv package and the new
> parallell booting support in sysvinit.
> 
> ### BEGIN INIT INFO
> # Provides:          cupsys
> # Required-Start:    $syslog
> # Required-Stop:     $syslog
> # Should-Start:      $network
> # Should-Stop:       $network
> # Default-Start:     2 3 4 5
> # Default-Stop:      S 0 1 6
> ### END INIT INFO

Hello Petter,

Thanks for the ready-to-use header!  

One question I need to ask is, how do we define a "must start before"?  

Here, CUPS must always be started before Samba, so that Samba can find
all printers offered by CUPS.

Other than that, the above looks good; we indeed only need the network
and syslog to have a decent environment to run CUPS.

Once the above is clarified, I will gladly commit the headers to CUPS.

-- 
Martin-Éric Racine
http://q-funk.iki.fi





More information about the Pkg-cups-devel mailing list