Public bug reported:

Binary package hint: sasl2-bin

Package: sasl2-bin
OS: Ubuntu Server 6.06 LTS
All Updates Applied: Yes

Problem:

Due to having to move the Cyrus-SASL mux socket to another directory, to
allow postfix access to it, I later found that the init script at
/etc/init.d/saslauthd could start, but, could not stop the daemon. I
found that there is a small error in the start routine, and the lines
read:

       dir=`dpkg-statoverride --list $PWDIR`
       test -z "$dir" || createdir $dir

dir always gets returned an empty string, and also the
OWNER:GROUP:PERMS:DIR are not passed to the createdir script.

I removed those two lines and replaced them with the following:

       test -d $PWDIR || createdir root sasl 710 $PWDIR

Now when you change the location of the pid and socket, by setting in
/etc/defaults/saslauthd

MECHANISMS="ldap"
PARAMS="-O /etc/saslauthd.conf -m /var/spool/postfix/var/run/saslauthd"
PWDIR="/var/spool/postfix/var/run/saslauthd"
PIDFILE="/var/spool/postfix/var/run/saslauthd/saslauthd.pid"

The directory, if non-existant is correctly created, and the the pid is
known to the stop function.

** Affects: cyrus-sasl2 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
saslauthd init script does not allow movement of PID
https://launchpad.net/bugs/79371

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to