With a vanilla FreeBSD installation, with the new version of /etc/rc.d/newsyslog installed, run the command:
/etc/rc.d/newsyslog installed, run the command:```
# /etc/rc.d/newsyslog start
```
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
A warning should be printed, and only the second and third files should
be listed in the warning.```
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
```