[CentOS] rsyslog.conf - why the "-" in this entry? mail.* -/var/log/maillog

Jerry Franz jfranz at freerun.com
Tue Jun 5 15:39:32 UTC 2012


On 06/05/2012 07:30 AM, James B. Byrne wrote:
> In dealing with an unrelated issue I came across this in rsyslog.conf.
> [...]
> Why is there a "-" before /var/log/maillog?
[...]

A leading '-' indicates the the log is written asynchronously. It is a 
performance tune to keep writing the syslog from thrashing the system 
with syncs. See http://www.rsyslog.com/doc/rsyslog_conf_actions.html

-- 
Benjamin Franz



More information about the CentOS mailing list