Kevin Miller wrote:
> I'm running a pretty stock install of rsyslogd on my workstation, and
> was experimenting with rsyslogd. I noticed in /etc/rsyslogd.conf that
> some paths had a "-" before them and others didn't. For instance, the
> snippet below pertains to the mail logging. The first two lines begin
> with -/var while the third is just /var (no dash in front).
>
> #
> # Logging for the mail system. Split it up so that
> # it is easy to write scripts to parse these files.
> #
>
mail.info -/var/log/
mail.info
> mail.warn -/var/log/mail.warn
> mail.err /var/log/mail.err
>
> What does the dash do/signify? I don't observe any difference in
> behavior. All three files are populated with their respective
> facility.priority messages.
>
> I've been reading through the docs but I haven't found anything that
> addresses this.
>
> Thanks...
>
> ...Kevin
See SYSKLOGD(8) under this section:
CONFIGURATION FILE SYNTAX DIFFERENCES
. . .
The - may only be used to prefix a filename if you want to omit
sync’ing the file after every write to it.
This may take some acclimatization for those individuals used
to the
pure BSD behavior but testers have indicated that this syntax is
some‐
what more flexible than the BSD behavior. Note that these
changes
should not affect standard syslog.conf(5) files. You must
specifically
modify the configuration files to obtain the enhanced behavior.
--
John
When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?