Package: dspam
Version: 3.6.8-5.1
Severity: wishlist
Tags: patch
User: Michele Angrisano <[EMAIL PROTECTED]>
Usertags: origin-ubuntu hardy ubuntu-patch
*** /tmp/tmpky8_17
In Ubuntu, we've applied the attached patch to achieve the following:
- debian/dspam.init: make sure directory for PIDFILE (/var/run/dspam)
exists.
We thought you might be interested in doing the same.
-- System Information:
Debian Release: lenny/sid
APT prefers hardy-updates
APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-14-generic (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u dspam-3.6.8/debian/dspam.init dspam-3.6.8/debian/dspam.init
--- dspam-3.6.8/debian/dspam.init
+++ dspam-3.6.8/debian/dspam.init
@@ -29,6 +29,9 @@
. /etc/default/$NAME
fi
+# Create directory for PIDFILE, if it does not exist.
+test -d $(dirname $PIDFILE) || mkdir -p -m 755 $(dirname $PIDFILE)
+
OPTIONS="--daemon $OPTIONS"
# Start the daemon