Package: dovecot-common
Version: 1:2.0.12-1
Severity: normal
Tags: patch

The shipped init script failes to use -c ${CONF} when calling doveconf to
determine PIDBASE, resulting in:

a) The following warning:

doveconf: Warning: Dovecot was last started using /etc/doublecheck/dovecot/dovecot.conf, but this config is /etc/dovecot/dovecot.conf

b) In the case that the base dir was changed in the specified config file, great
breakage and mayhem.

A one-line patch to solve the problem by calling doveconf with -c ${CONF} is attached.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages dovecot-common depends on:
ii  adduser                 3.112+nmu2       add and remove users and groups
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libpam-runtime 1.1.1-6.1 Runtime support for the PAM librar ii libpam0g 1.1.1-6.1 Pluggable Authentication Modules l
ii  libssl0.9.8             0.9.8o-4squeeze1 SSL shared libraries
ii openssl 0.9.8o-4squeeze1 Secure Socket Layer (SSL) binary a ii ucf 3.0025+nmu1 Update Configuration File: preserv
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

dovecot-common recommends no packages.

Versions of packages dovecot-common suggests:
ii ntp 1:4.2.6.p2+dfsg-1+b1 Network Time Protocol daemon and u

-- no debconf information

diff -ru dovecot-2.0.12-orig//debian/dovecot-common.init dovecot-2.0.12/debian/dovecot-common.init
--- dovecot-2.0.12-orig//debian/dovecot-common.init	2011-04-25 16:04:58.000000000 -0500
+++ dovecot-2.0.12/debian/dovecot-common.init	2011-05-24 10:42:34.000000000 -0500
@@ -73,7 +73,7 @@
 
 # determine the location of the PID file
 # overide by setting base_dir in conf file or PIDBASE in /etc/defaults/$NAME
-PIDBASE=${PIDBASE:-`doveconf -n | sed -r "s/^[ \t]*base_dir[ \t]*=[ \t]*([^ \t]*)/\1/;t;d"`}
+PIDBASE=${PIDBASE:-`doveconf -n -c ${CONF} | sed -r "s/^[ \t]*base_dir[ \t]*=[ \t]*([^ \t]*)/\1/;t;d"`}
 PIDFILE=${PIDBASE:-/var/run/dovecot}/master.pid
 
 #

Reply via email to