Package:  bacula-sd bacula-fd bacula-director-common
Version:  2.2.5-1
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/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 bacula-2.2.6.orig/debian/bacula-director-common.bacula-director.init 
bacula-2.2.6/debian/bacula-director-common.bacula-director.init
--- bacula-2.2.6.orig/debian/bacula-director-common.bacula-director.init        
2008-01-11 15:29:54.000000000 +0100
+++ bacula-2.2.6/debian/bacula-director-common.bacula-director.init     
2008-01-11 15:34:32.000000000 +0100
@@ -1,4 +1,11 @@
 #! /bin/sh
+### BEGIN INIT INFO
+# Provides:          bacula-director
+# Required-Start:    $remote_fs $syslog bacula-fd
+# Required-Stop:     $remote_fs $syslog bacula-fd
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
 # bacula-director     SysV init script for Bacula-Director.
 #
 #       Written by Miquel van Smoorenburg <[EMAIL PROTECTED]>.
diff -ur bacula-2.2.6.orig/debian/bacula-fd.init 
bacula-2.2.6/debian/bacula-fd.init
--- bacula-2.2.6.orig/debian/bacula-fd.init     2008-01-11 15:29:54.000000000 
+0100
+++ bacula-2.2.6/debian/bacula-fd.init  2008-01-11 15:33:45.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          bacula-fd
+# Required-Start:    $remote_fs $syslog bacula-sd
+# Required-Stop:     $remote_fs $syslog bacula-sd
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
 #
 # bacula-fd    SysV init script for Bacula-FD.
 #
diff -ur bacula-2.2.6.orig/debian/bacula-sd.init 
bacula-2.2.6/debian/bacula-sd.init
--- bacula-2.2.6.orig/debian/bacula-sd.init     2008-01-11 15:29:54.000000000 
+0100
+++ bacula-2.2.6/debian/bacula-sd.init  2008-01-11 15:33:21.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          bacula-sd
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
 #
 # bacula-fd     SysV init script for Bacula-FD.
 #

As the stop script do not seem to do much except killing the daemons,
that task might be better left to the sendsigs script in runlevel 0
and 6.  If this is indeed the case, I recommend removing 0 and 6 from
the Default-Stop list.  The daemon might need to be changed to remove
its pid file.

Happy hacking,
--
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to