# should be in /etc/logrotate.d/ directory
# It heavily depends on the directory structure (see rules bellow).
/var/log/dmesg {
    size=1M
    create
    notifempty
    missingok
    rotate 1
    postrotate
        /usr/sbin/logrotate -f /usr/local/logrotate/dmesglog
        /bin/mv /var/log/dmesg.1 /linuxrwfs/permlog/dmesg
    endscript
}
