Package: mailscanner Version: 4.55.10-4 Severity: important Tags: patch User: [email protected] Usertags: incorrect-provides incorrect-dependency
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d script. The provides should be unique and preferably the name of the script. The current one (daemon) conflict with other scripts (the clvm script to be exact). Also, the package uses syslog and should start after the syslog daemon and need to depend on $syslog. The $local_fs dependency is redundant and implied by $remote_fs. <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 install if another script providing the same words already is installed, and start too late in the boot sequence which might lead to some syslog messages being lost. diff -ur mailscanner-4.74.16/debian/init.d mailscanner-4.74.16-pere/debian/init.d --- mailscanner-4.74.16/debian/init.d 2009-08-18 17:10:54.000000000 +0200 +++ mailscanner-4.74.16-pere/debian/init.d 2009-08-18 17:06:27.000000000 +0200 @@ -1,8 +1,8 @@ #! /bin/sh ### BEGIN INIT INFO -# Provides: MailScanner daemon -# Required-Start: $local_fs $remote_fs -# Required-Stop: $local_fs $remote_fs +# Provides: mailscanner +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Controls mailscanner instances Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

