-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Another possible solution is to bind mount the mysql directory if postfix-mysql is installed. Here's a quick hack that does just that. You'd probably want a better way of checking whether postfix-mysql is in use, and perhaps some sanity checking to make sure bind mounts are actually supported under the host OS. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFaNA/OmXwGc/ULyYRAtdRAJ4gzLA+CcduEFB/caNIgG4jAVcvRACcD64E O4KnPw8QVESN2LFDb01PBxs= =dwnP -----END PGP SIGNATURE-----
--- /etc/init.d/postfix.orig 2006-11-25 18:12:00.000000000 -0500 +++ /etc/init.d/postfix 2006-11-25 18:17:12.000000000 -0500 @@ -56,6 +56,14 @@ fi fi + # if postfix-mysql is installed, attempt to ensure mysqld's + # socket is available if we can. + [ -f /usr/lib/postfix/dict_mysql.so ] && \ + [ ! -d var/run/mysqld ] && { + mkdir -p var/run/mysqld + mount --bind /var/run/mysqld var/run/mysqld || true + } + FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \ etc/nsswitch.conf" for file in $FILES; do