/var/log/slimserver.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        sharedscripts
        postrotate
                if [ -f /var/run/slimserver.pid ]; then
                    if [ -x `which invoke-rc.d` ] ; then
                        invoke-rc.d slimserver restart > /dev/null
                    else
                        /etc/init.d/slimserver restart > /dev/null
                    fi
                fi
        endscript
}
