Package: randomsound Version: 0.2-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 script. The dependencies make sure the script is started after /usr/ is available and the syslog collector is started, which as far as I can see should match its original position in the boot sequence. Also, it should stop in runlevel 1. There is no $alsa virtual facility. I guess alsa-utils is the one you want. <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 start to early in the boot sequence, and fail to restart when changing from runlevel 1 to 2-5. In addition to this header change, some code in postinst is needed to add the stop symlinks in rc1.d during upgrades. diff -ru randomsound-0.2/debian/init.d randomsound-0.2-pere/debian/init.d --- randomsound-0.2/debian/init.d 2009-08-18 20:36:08.000000000 +0200 +++ randomsound-0.2-pere/debian/init.d 2009-08-18 20:36:53.000000000 +0200 @@ -1,12 +1,10 @@ #!/bin/sh ### BEGIN INIT INFO # Provides: randomsound -# Required-Start: $alsa -# Should-Start: -# Required-Stop: -# Should-Stop: +# Required-Start: $remote_fs $syslog alsa-utils +# Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 -# Default-Stop: 0 6 +# Default-Stop: 0 1 6 # Short-Description: Random Sound # Description: ALSA sound card related entropy gathering daemon. ### 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