/var/log/ejabberd/ejabberd.log {
     weekly
     missingok
     rotate 10
     compress
     delaycompress
     ifempty
     nomail
     sharedscripts
     postrotate ejabberdctl --node ejabberd reopen-log > /dev/null
     endscript
}
