--- /usr/portage/mail-filter/postgrey/files/postgrey.rc.new 2005-09-07 23:35:48.000000000 +0200 +++ /etc/init.d/postgrey 2005-11-02 08:17:56.000000000 +0100 @@ -57,7 +57,9 @@ # HACK -- start a subshell and corrects perms on the socket... ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then - sleep 2 && chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & + rm -f ${POSTGREY_SOCKET}; + while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; + chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & start-stop-daemon --start --quiet --background \ --exec /usr/sbin/postgrey -- \