Re: tcpsvd and ipsvd-instruct

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Thu, May 13, 2004 at 01:10:06PM -0400, Charlie Brady wrote:
> On Thu, 13 May 2004, M.S. Lucas wrote:
> > @4000000040a3a8411cb00074 tcpsvd: info: status 1/20
> > @4000000040a3a8411cb265bc tcpsvd: info: pid 4470 from 192.168.1.3
> > @4000000040a3a8481512eb9c tcpsvd: info: start 4470 :192.168.1.250
> > ::192.168.1.3:3497 /var/qmail/control/peers/0:
> > @4000000040a3a8481517a68c tcpsvd: info: end 4470 exit 111
> > @4000000040a3a84815185e24 tcpsvd: info: status 0/20
> ...
> > And another failure.
> 
> What is the content of /var/qmail/control/peers/0? Who owns 
> /var/qmail/control/peers/0 and what is its permissions?

The instructions seem to work just fine, with the directory and the cdb.

> I see "exit 111". Under what conditions does tcpsvd exit 111 (consult the 
> source code)?

I don't think it's tcpsvd that exits 111 here, it would print an error
message, 111 normally indicates a temporary error.  pid xxx in the
tcpsvd log means it forked for a connection and has pid xxx; start xxx
means it now runs the default program, specified at the command line.
But rblsmtpd, recordio, and smtpfront-qmail also shouldn't exit 111
without printing an error message.  M.S., could you please run a system
call trace to find out which program exits 111?, e.g.:

/usr/local/bin/tcpsvd -vv -u "$QMAILDUID":"$NOFILESGID" -c "$MAXSMTPD" \
  -x /var/qmail/control/peers.cdb 0 smtp \
  strace -f -o/tmp/trace /usr/local/bin/rblsmtpd -b -C \
    -r bl.spamcop.net recordio /usr/local/bin/smtpfront-qmail

Thanks, Gerrit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.