Hi,

here's my /etc/logrotate.d/debtorrent:

------------------------%<--------cut here-------->%--------------------

/var/log/debtorrent/apt-access.log /var/log/debtorrent/debtorrent-client.log 
/var/log/debtorrent/debtorrent-tracker.log 
/var/log/debtorrent/tracker-access.log {
        daily
        rotate 3
        missingok
        create 775 root debtorrent
        compress
        sharedscripts
        postrotate
                /etc/init.d/debtorrent-client restart
                /etc/init.d/debtorrent-tracker restart
        endscript
}

------------------------%<--------cut here-------->%--------------------

Disadvantage is the daily restart of debtorrent, which means it has to start
its search for peers again, but there is no reload target.

HTH,

Sebastian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to