I'm trying to utilize newsyslog.conf -- newsyslog(8) configuration file
to rotate my apache
/nginx
/squid
log files:
# uname -a
FreeBSD X 9.2-RELEASE-p17 FreeBSD 9.2-RELEASE-p17 #0 r282430: Mon May 4 13:59:58 PDT 2015 root@X:/usr/obj/usr/src/sys/R610 amd64
# tail -1 /etc/newsyslog.conf
<include> /etc/newsyslog-local.conf
# cat /etc/newsyslog-local.conf
/var/log/httpd-*.log root:wheel 644 7 * @T00 JC /var/run/httpd.pid
/var/log/nginx-*.log root:wheel 644 7 * @T00 JC /var/run/nginx.pid
/var/log/squid/*.log squid:squid 640 7 * @T00 JC /var/run/squid/squid.pid
# newsyslog
# echo $?
0
# ll /var/log/httpd-* /var/log/nginx-* /var/log/squid/*log*
-rw-r--r-- 1 root wheel 794179378 Jun 10 12:13 /var/log/httpd-access.log
-rw-r--r-- 1 root wheel 236848603 Jun 10 12:09 /var/log/httpd-error.log
-rw-r--r-- 1 root wheel 3513917 Jun 10 12:09 /var/log/httpd-ssl_request.log
-rw-r--r-- 1 root wheel 1789191504 Jun 10 12:13 /var/log/nginx-access.log
-rw-r--r-- 1 root wheel 165855753 Jun 10 12:13 /var/log/nginx-error.log
-rw-r----- 1 squid squid 5604675 Jun 10 12:01 /var/log/squid/access.log
-rw-r----- 1 squid squid 12589 Jun 10 10:47 /var/log/squid/cache.log
#
What am I doing wrong?