Package:  bcfg2 bcfg2-server
Version:  0.2-1
Severity: important
Tags:     patch
User:     [EMAIL PROTECTED]
Usertags: incorrect-dependency

I just checked the shutdown order in unstable on a machine with
dependency based boot sequencing enabled, and discovered a problem
with the init.d scripts provided in the bcfg2 and bcfg2-server
package.  It stops to late and start to early, as it do not depend on
$remote_fs which guarantee that /usr/ will be mounted and that it
stops before sendsigs.

Another issue is that the init.d script list S in its stop runlevel
list.  This make a useless stop symlink in rcS.d/, and S should not be
included there.

Here is a patch to solve these issues.

diff -ur bcfg2-0.9.4.orig/debian/bcfg2.init bcfg2-0.9.4/debian/bcfg2.init
--- bcfg2-0.9.4.orig/debian/bcfg2.init  2008-03-09 08:26:39.000000000 +0100
+++ bcfg2-0.9.4/debian/bcfg2.init       2008-03-09 08:27:47.000000000 +0100
@@ -7,10 +7,10 @@
 #
 ### BEGIN INIT INFO
 # Provides:          bcfg2
-# Required-Start:    $network $named
-# Required-Stop:
+# Required-Start:    $network $remote_fs $named
+# Required-Stop:     $network $remote_fs $named
 # Default-Start:     2 3 4 5
-# Default-Stop:      S 0 1 6
+# Default-Stop:      0 1 6
 # Short-Description: Configuration management client
 # Description:       Bcfg2 is a configuration management system that builds
 #                    installs configuration files served by bcfg2-server
diff -ur bcfg2-0.9.4.orig/debian/bcfg2-server.init 
bcfg2-0.9.4/debian/bcfg2-server.init
--- bcfg2-0.9.4.orig/debian/bcfg2-server.init   2008-03-09 08:26:39.000000000 
+0100
+++ bcfg2-0.9.4/debian/bcfg2-server.init        2008-03-09 08:27:30.000000000 
+0100
@@ -7,10 +7,10 @@
 #
 ### BEGIN INIT INFO
 # Provides:          bcfg2-server
-# Required-Start:    $network
-# Required-Stop:
+# Required-Start:    $network $remote_fs
+# Required-Stop:     $network $remote_fs
 # Default-Start:     2 3 4 5
-# Default-Stop:      S 0 1 6
+# Default-Stop:      0 1 6
 # Short-Description: Configuration management Server
 # Description:       Bcfg2 is a configuration management system that builds
 #                    installs configuration files served by bcfg2-server

Happy hacking,
--
Petter Reinholdtsen



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

Reply via email to