Index: libexec/rc/rc.d/newsyslog =================================================================== --- libexec/rc/rc.d/newsyslog +++ libexec/rc/rc.d/newsyslog @@ -14,7 +14,23 @@ required_files="/etc/newsyslog.conf" command="/usr/sbin/${name}" start_cmd="newsyslog_start" +start_precmd="newsyslog_prestart" stop_cmd=":" + +newsyslog_prestart() +{ + excludedfiles=$( find -E /etc/newsyslog.conf.d/ /usr/local/etc/newsyslog.conf.d/ \ + \( -type f \) -and \ + \( -name ".*" -or -not -name "*.conf" \) -and \ + -not \( -regex ".*\.(sample|bak|orig|rej)" \) ) + if [ -n "${excludedfiles}" ]; then + echo "********************** WARNING from newsyslog(8) **********************" + echo "The following files start with '.' or do not end with '.conf'" + echo "and therefore will not be included by the default newsyslog.conf(5):" + echo "${excludedfiles}" + echo "***********************************************************************" + fi +} newsyslog_start() {