On Tue, May 18, 1999 at 04:29:07PM +0200, Balazs Nagy wrote:
> > If you run under tcpserver it's no problem to log to stderr. Everthing
> > you print to stderr will appear in tcpserver's logfile. In fact I'm
> > implementing that right now for qmail-smptd and qmail-pop3d.
> Yeah, but you *should* give a non-sensitive solution. If you use stderr for
> logging, you should remove the dup2ing fd 1 to fd 2 line, but it's for
> compatibility reasons among various inetd's. By the way inetd (from
> netkit-base) actually dup2s fd 1 to fd 2, which will happily puts your logs
> to the socket. Why do you want to determine qmail services whether it runs
> under tcpserver or not? It's a very heavy compatibility issue.
What about djb's errorsto? If you made the pop3d etc
log to stderr, running them under tcpserver is trivial.
Couldn't they be made to work under inetd with errorsto?
Basically it's just
smtp stream tcp nowait qmaild errorsto splogger qmail-smtpd
--
Havoc Consulting | unix, linux, perl, mail, www, internet, security consulting
+358 50 5486010 | software development, unix administration, training