On Mon, Oct 16, 2006 at 09:22:09PM +0200, Robert Felber wrote:
> > running, if it manages to start, sometimes it will successfully work,
> > but frequently postfix reports "warning: premature end-of-input on
> > 127.0.0.1:12525 while reading input attribute name".
> > 
> > I have tried restoring $MAX_PROCS and $MIN_PROCS to their default
> > values, but there is no change.  I also set $DEBUG=1 but got no extra
> > logging.
> 
> As you are running Gentoo, which log files did you check. Gentoo might send
> debug messages to /var/log/debug.log
> 
> # date > debug-pr.txt 2>&1
> # /path/to/policyd-weight -k restart >> debug-pr.txt 2>&1 
> # echo "/path/to/policyd-weight -k restart -- done" >> debug-pr.txt 2>&1
> # bash
> # grep "weight\[" /var/log/mail.log /var/log/debug.log >> debug-pr.txt 2>&1
> # exit

This might be a bit too verbose and big-sized, instead use following:

# date                                              >  debug-pr.txt 2>&1
# sysctl net.core.somaxconn                         >> debug-pr.txt 2>&1
# lsof -i -n | wc -l                                >> debug-pr.txt 2>&1
# /path/to/policyd-weight -k restart                >> debug-pr.txt 2>&1

wait some seconds or send some mails to yourself

# echo "/path/to/policyd-weight -k restart -- done" >> debug-pr.txt 2>&1
# bash
# grep "weight\[" /var/log/mail.* | grep -v "decided\|weighted check" >> 
debug-pr.txt 2>&1
# date                                              >> debug-pr.txt 2>&1


(notice: grep /var/log/mail.* -- just encountered: warnings are sent to 
/var/log/mail.warn)



-- 
    Robert Felber (PGP: 896CF30B)
    Munich, Germany

____________________________________________________________
Policyd-weight Mailinglist - http://www.policyd-weight.org/

Reply via email to