Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 11:17:11 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Zbigniew Szalbot <zbyszek@szalbot.homedns.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: having more than one process write to one log
Message-ID:  <70827E8F-3DFE-461A-BA05-2AB48CEF5961@mac.com>
In-Reply-To: <20061019195557.M97577@192.168.11.51>
References:  <20061019195557.M97577@192.168.11.51>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 19, 2006, at 10:58 AM, Zbigniew Szalbot wrote:
> I will appreciate your advice. Is it possible and *safe* to allow  
> two different processes (dovecot and exim) to write to one log?  
> Better not do it? I would like to have both data in one log but...  
> don't want to cause problems. I don't think Windows would allow it.  
> How about FBSD?

Those things normally use syslog to write via the LOG_MAIL facility  
to /var/log/maillog.  Syslog-based logging will handle logging from  
multiple programs to just one logfile just fine.

Otherwise, you are advised to look into fsync() and flock().  Those  
syscalls do not necessarily work on remote filesystems, however...

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70827E8F-3DFE-461A-BA05-2AB48CEF5961>