With a vanilla FreeBSD installation, with the new version of /etc/rc.d/newsyslog installed, run the command:
```
# /etc/rc.d/newsyslog start
Creating and/or trimming log files.
```
As you can see from the output above - no warning should be listed.
Then create some test files:
```
# touch /etc/newsyslog.conf.d/pf.conf.bak
# touch /etc/newsyslog.conf.d/pf
# touch /usr/local/etc/newsyslog.conf.d/.pf.conf
# touch /usr/local/etc/newsyslog.conf.d/pf.conf.sample
```
Repeat the command:
```
# /etc/rc.d/newsyslog start
********************** WARNING from newsyslog(8) **********************
The following files start with '.' or do not end with '.conf'
and therefore will not be included by the default newsyslog.conf(5):
/etc/newsyslog.conf.d/pf
/usr/local/etc/newsyslog.conf.d/.pf.conf
***********************************************************************
```
As you can see from the output above - a warning should be printed, and only the second and third files should be listed in the warning.
Clean up the test files:
```
# rm /etc/newsyslog.conf.d/pf.conf.bak
# rm /etc/newsyslog.conf.d/pf
# rm /usr/local/etc/newsyslog.conf.d/.pf.conf
# rm /usr/local/etc/newsyslog.conf.d/pf.conf.sample
```