[Pkg-dspam-misc] Bug#461135: debian/dspam.init: make sure directory for PIDFILE (/var/run/dspam) exists.

Michele Angrisano darksun1988 at gmail.com
Wed Jan 16 20:49:55 UTC 2008


Package: dspam
Version: 3.6.8-5.1
Severity: wishlist
Tags: patch
User: Michele Angrisano <micheleangrisano at ubuntu.com>
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
-------------- next part --------------
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


More information about the Pkg-dspam-misc mailing list