/var/log/obfsproxy.log {
  daily
  missingok
  rotate 3
  compress
  delaycompress
  notifempty
  create 600 obfsproxy obfsproxy
  postrotate
    if [ -f /var/run/obfsproxy.pid ]; then
      /etc/init.d/obfsproxy restart > /dev/null
    fi
  endscript
}