/var/log/dansguardian/access.log {
  rotate 4
  weekly
  sharedscripts
  prerotate
    killall dansguardian > /dev/null
    sleep 5
  endscript

  postrotate
    /usr/pkg/sbin/dansguardian > /dev/null
  endscript
}
