[Pkg-dspam-misc] Bug#541982: dspam: Incorrect provides and dependencies in init.d script

Petter Reinholdtsen pere at hungry.com
Mon Aug 17 06:29:33 UTC 2009

Package:  dspam
Version:  3.6.2-1
Severity: important
Tags:     patch
User:     initscripts-ng-devel at 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.  It need to have a unique and correct
provides, and should depend on at least mysql and the two versions of
postgresql in the archive (perhaps more, did not find more clues in
the changelog).

<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 service will start
to early in the boot, and will also fail to install because of
duplicate provides.

diff -ur dspam-3.6.8/debian/dspam.init dspam-3.6.8-pere/debian/dspam.init
--- dspam-3.6.8/debian/dspam.init       2009-08-17 08:21:42.000000000 +0200
+++ dspam-3.6.8-pere/debian/dspam.init  2009-08-17 08:25:31.000000000 +0200
@@ -1,8 +1,10 @@
-# Provides:          skeleton
+# Provides:          dspam
 # Required-Start:    $local_fs $remote_fs
 # Required-Stop:     $local_fs $remote_fs
+# Should-Start:      mysql postgresql-8.3 postgresql-8.4
+# Should-Stop:       mysql postgresql-8.3 postgresql-8.4
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: initscript for dspam

Happy hacking,
Petter Reinholdtsen

More information about the Pkg-dspam-misc mailing list