Ejabberd Does Not Do Logging After Log Rotate

Dear All
I followed the tutorial to create log rotation for ejabberd. At midnight the log rotated however the new log is emtpy and does not log. How can I solve this "without a restart if possible" this is a live server.

I have the file ejabberd in /etc/logrotate.d/
/opt/ejabberd-2.0.0/logs/ejabberd.log {
daily
missingok
rotate 4
compress
delaycompress
ifempty
nomail
sharedscripts
postrotate /opt/ejabberd-2.0.0/bin/ejabberdctl default reopen-log > /opt/ejabberd-2.0.0/logs/ejabberd.log
endscript
}

.

.

Syndicate content