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

  postrotate
    /opt/local/sbin/dansguardian > /dev/null
  endscript
}
