Package:  slurm-llnl slurm-llnl-slurmdbd
Version:  2.0.4-1
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-runlevels incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d scripts of this package.  The runlevel list state
that it should stop in runlevel 2 and not start in runlevel 4.  This
is inconsistent with the Debian runlevels and the arguments used for
update-rc.d.  Also, the dependencies are not correct.  It uses files
in /usr/, and thus need to depend on $remote_fs.  Also, I assume it
should be able to work even without a DNS server installed on the same
machine.  For this to work, the $named dependency need to be optional.

<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 >.

This patch should solve the issue.  Without it, the init.d fail to
start in runlevel 2 and 4 by default with dependency based boot
sequencing, and will start to early in the boot sequence.

diff -ru slurm-llnl-2.0.4/debian/slurm-llnl-slurmdbd.init.d 
slurm-llnl-2.0.4-pere/debian/slurm-llnl-slurmdbd.init.d
--- slurm-llnl-2.0.4/debian/slurm-llnl-slurmdbd.init.d  2009-08-12 
20:27:19.000000000 +0200
+++ slurm-llnl-2.0.4-pere/debian/slurm-llnl-slurmdbd.init.d     2009-08-12 
20:32:34.000000000 +0200
@@ -11,10 +11,12 @@
 #
 ### BEGIN INIT INFO
 # Provides:          slurmbd
-# Required-Start:    $local_fs $syslog $network $named munge
-# Required-Stop:     $local_fs $syslog $network $named munge
-# Default-Start:     3 5
-# Default-Stop:      0 1 2 6
+# Required-Start:    $remote_fs $syslog $network munge
+# Required-Stop:     $remote_fs $syslog $network munge
+# Should-Start:      $named
+# Should-Stop:       $named
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
 # Short-Description: SLURM database daemon
 # Description:       Start slurm to provide database server for SLURM
 ### END INIT INFO
diff -ru slurm-llnl-2.0.4/debian/slurm-llnl.init.d 
slurm-llnl-2.0.4-pere/debian/slurm-llnl.init.d
--- slurm-llnl-2.0.4/debian/slurm-llnl.init.d   2009-08-12 20:27:19.000000000 
+0200
+++ slurm-llnl-2.0.4-pere/debian/slurm-llnl.init.d      2009-08-12 
20:31:03.000000000 +0200
@@ -15,10 +15,12 @@
 #
 ### BEGIN INIT INFO
 # Provides:          slurm
-# Required-Start:    $local_fs $syslog $network $named munge
-# Required-Stop:     $local_fs $syslog $network $named munge
-# Default-Start:     3 5
-# Default-Stop:      0 1 2 6
+# Required-Start:    $remote_fs $syslog $network munge
+# Required-Stop:     $remote_fs $syslog $network munge
+# Should-Start:      $named
+# Should-Stop:       $named
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
 # Short-Description: slurm daemon management
 # Description:       Start slurm to provide resource management
 ### END INIT INFO

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to