Operating System - Linux
1828371 Members
2937 Online
109976 Solutions
New Discussion

"-" b4 the path in sysconfig file ?

 
SOLVED
Go to solution
Maaz
Valued Contributor

"-" b4 the path in sysconfig file ?

from /etc/sysconfig/sysconfig

mail.* -/var/log/maillog

is there any significance of "-" ? before the path /var/log/maillog ?

Regards
Maaz
4 REPLIES 4
Maaz
Valued Contributor

Re: "-" b4 the path in sysconfig file ?

sory its not /etc/sysconfig/sysconfig, it is /etc/sysconfig/syslog
Phillip Brown
Frequent Advisor
Solution

Re: "-" b4 the path in sysconfig file ?

You gain some performance advantage by disabling synchronous file writes, although this increases the odds of an inconsistent filesystem (an issue with filesystems that do not do journalling).

Placing a - before the filename disables synchronous file writes.

Basically, this disables an fsync() after each message, and is a common performance improvement for syslog. You can also stop logging the debug messages if you're all setup....

Regards,
Maaz
Valued Contributor

Re: "-" b4 the path in sysconfig file ?

Thanks Dear Phillip Brown.
To get beter performance, If filesystem is a Journalling(say ext3), than I place - b4 all log location ?

*.info -/var/log/messages
authpriv.* -/var/log/secure
cron.* -/var/log/cron
local7.* -/var/log/boot.log

do u recommend ?

Regards
Maaz
Phillip Brown
Frequent Advisor

Re: "-" b4 the path in sysconfig file ?

Maaz,

I don't believe any of the other services require it. So, I'd leave those alone.

Kind regards,

Phil