Invalid syntax in newsyslog.conf (FreeBSD)
/etc/newsyslog.conf contains line:
logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/iredapd.log root:wheel 640 7 * 24 Z "/usr/local/etc/rc.d/iredapd restart"
where newsyslog.conf doesn't allow arbitrary commands, only path to pidfile and a signal to send to process referenced in the pid file.