Am Montag, 3. März 2008 08:31:42 schrieb Petter Reinholdtsen:
> Package:  uif
> Version:  1.0.5-3
> 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 anacron 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/in
>itscrcomconv.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 uif-1.0.5.orig/uif uif-1.0.5/uif
> --- uif-1.0.5.orig/uif  2008-03-03 08:28:03.000000000 +0100
> +++ uif-1.0.5/uif       2008-03-03 08:30:02.000000000 +0100
> @@ -1,6 +1,12 @@
>  #! /bin/bash
> -#
> -# uif           Start the firewall defined in /etc/uif/uif.conf.
> +### BEGIN INIT INFO
> +# Provides:          uif
> +# Required-Start:    $remote_fs $syslog
> +# Required-Stop:     $remote_fs $syslog
> +# Default-Start:     2 3 4 5
> +# Default-Stop:      0 1 6
> +# Short-Description: Start the firewall defined in /etc/uif/uif.conf.
> +### END INIT INFO
>  #
>  # Version:      @(#)/etc/init.d/uif  1.0.0  21-Feb-2002 
> [EMAIL PROTECTED] #

Thanks. UIF is a firewall, so I don't see what remote_fs will do there. I've 
replaced "$remote_fs" by "$network".

> As the stop script do not seem to do much except killing the daemon,
> that task might be better left to the sendsigs script in runlevel 0
> and 6, to speed up shutdown.  If this is indeed the case, I recommend
> removing 0 and 6 from the Default-Stop list.

Nope - stop deconfigures the firewall. There is no daemon to kill.

Cheers,
Cajus


Reply via email to