Package: postfix
Version: 2.2.10-1bpo2
Severity: serious
Justification: Init script "stop" action not working like policy requires

The debian init script fails to stop postfix if the queue directory for
postfix has been changed by the local admin. This is due to using a
hard-wired path in the init script where the path can change depending
on the configuration. For example, I changed the queue path to reflect
my high-availability setup with a shared partition. With a changed queue
path, postfix also changes the location of it's master.pid file. If you
change the "running" function in the init script to look like this, it
works again.

running() {
    if [ -f "`postconf -h queue_directory`/pid/master.pid" ]; then
        pid=$(sed 's/ //g' "`postconf -h queue_directory`/pid/master.pid")
        exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //; s/.*\///')
        if [ "X$exe" = "Xmaster" ]; then
            echo y
        fi
    fi
}

Regards,
Sven

-- System Information:
Debian Release: 3.1
  APT prefers stable
  APT policy: (990, 'stable'), (400, 'experimental'), (90, 'testing'), (50, 
'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.12-incase
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to