Package: drbd0.7-utils Version: 0.7_pre8-1 Severity: important Tags: patch User: initscripts-ng-de...@lists.alioth.debian.org Usertags: incorrect-runlevels
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d script. The runlevel list do not match the arguments to update-rc.d, it should start in runlevels 2 and 4. <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 script will fail to start in runlevels 2 and 4. In addition to this header change, some code in postinst is needed to remove the stop symlink in rc2.d and add a start symlink in rc2.d and rc4.d during upgrades. diff -ur drbd0.7-0.7.25/scripts/drbd drbd0.7-0.7.25-pere/scripts/drbd --- drbd0.7-0.7.25/scripts/drbd 2007-10-10 16:41:14.000000000 +0200 +++ drbd0.7-0.7.25-pere/scripts/drbd 2009-08-18 22:15:29.000000000 +0200 @@ -11,8 +11,8 @@ # Provides: drbd # Required-Start: $network $syslog sshd # Required-Stop: $network $syslog sshd -# Default-Start: 3 5 -# Default-Stop: 0 1 2 6 +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Basic configuration of drbd resources. ### 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