On Tue, 2008-01-08 at 21:27 +0530, Abhijit Hoskeri
wrote:> Hi,
>
> I am having a bit of a problem with logging to stderr.
>
> I am trying to run dovecot as sort of "inetd" install using
daemontools.
> I have daemontools 'services' named dovecot-pop3, dovecot-imap,
etc.
>
> The service command line looks like
>
> tcpsvd -c20 -v -l 0 0 110 /usr/lib/dovecot/pop3-login [--ssl]
>
> In dovecot/dovecot.conf, the log_path is set to /dev/stderr.
>
> What seems to be happening is that all the log lines (regardless of
> service) go to the log file of which ever service was first used.
>
> Exactly how are these logs written? Is it possible to (easily) make
> the login process write to its own stderr?
The first pop3-login starts dovecot master process, which then logs to
the stderr it was given. All other non-pop3/imap-login processes then
write their logs via dovecot master.
So if you'd want each session to log to the stderr that was initiated by
login process.. It's just not possible without a lot of coding.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080110/9b002590/attachment-0002.bin>