newsyslog configuration/s

It seems any configurations included in /usr/local/etc/newsyslog.d/*.conf do NOT override the defaults contained in /etc/newsyslog.conf.
Rather, configurations included in /usr/local/etc/newsyslog.d/*.conf appear to be processed in addition to whatever is contained in /etc/newsyslog.conf.
Could this be deliberate ? Perhaps some unusual FreeBSD behaviour.
Edit. Using 14.3, not tested any other version/s.
 
The behaviour you described is correct and documented in newsyslog(8):

Code:
/usr/local/etc/newsyslog.conf.d  By default each file in this directory ending in '.conf' and not beginning
                                 with '.' will be included by the default newsyslog.conf.
 
This behavior is planned.
less /usr/src/usr.sbin/newsyslog/newsyslog.c
...
static void
expand_globs(struct cflist *work_p, struct cflist *glob_p)
{
...

/*
* The worklist contains all fully-specified (non-GLOB) names.
*
* Now expand the list of filename-pattern (GLOB) entries into
* a second list, which (by definition) will only match files
* that already exist. Do not add a glob-related entry for any
* file which already exists in the fully-specified list.

...
 
Thanks for replies.
I'll try to remember that for some package/s, custom configurations saved in /usr/local/etc/ do NOT always override the default settings that come shipped in /etc/
 
Back
Top