Package: dkim-filter Version: 1.2.0.dfsg-1 Severity: wishlist Tags: patch Checking to see if the PID dir exists in the init would be helpful in cases where /var/run is on a tempfs.
diff -Nru /tmp/BMv3q8A5Sf/dkim-milter-1.2.0.dfsg/debian/dkim-filter.init /tmp/ZcWj5IpBXN/dkim-milter-1.2.0.dfsg/debian/dkim-filter.init --- /tmp/BMv3q8A5Sf/dkim-milter-1.2.0.dfsg/debian/dkim-filter.init 2007-07-19 04:44:36.000000000 +0000 +++ /tmp/ZcWj5IpBXN/dkim-milter-1.2.0.dfsg/debian/dkim-filter.init 2007-07-19 04:44:37.000000000 +0000 @@ -17,6 +17,7 @@ DESC="DKIM Filter" RUNDIR=/var/run/$NAME USER=dkim-filter +GROUP=dkim-filter SOCKET=$RUNDIR/$NAME.pid # How long to wait for the process to die on stop/restart @@ -37,6 +38,10 @@ DAEMON_OPTS="-x /etc/dkim-filter.conf -u $USER -P $RUNDIR/$NAME.pid $DAEMON_OPTS" start() { + # Build the run directory if it doesn't exist + if [ ! -d ${RUNDIR} ] ; then + install -o ${USER} -g ${GROUP} -m 755 -d ${RUNDIR} || return 2 + fi UMASK=`umask` # Force group-writable socket umask 002 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]