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

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