Bug#440510: debtorrent: please provide an entry for /etc/logrotate.d

2007-10-07 Thread Cameron Dale
tags 440510 pending
thanks

I was going to code something better (perhaps using the python logging
module's RotatingFileHandler), but I decided simplicity was best. I'm
now using a modified logrotate config file from the one Sebastian
posted that doesn't require restarting the client (through the use of
logrotate's copytruncate option). Here it is if you want to try it out
before I upload the next version:

/var/log/debtorrent/apt-access.log
/var/log/debtorrent/debtorrent-client.log
/var/log/debtorrent/debtorrent-tracker.log
/var/log/debtorrent/tracker-access.log {
weekly
rotate 7
missingok
notifempty
compress
copytruncate
delaycompress
}

Thanks,
Cameron



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



Bug#440510: debtorrent: please provide an entry for /etc/logrotate.d

2007-09-19 Thread Cameron Dale
On 9/12/07, Sebastian Bremicker [EMAIL PROTECTED] wrote:
 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.

Thanks Sebastian. I'm currently working on a better solution that
doesn't require the daily restarts, but until then this one should
work for others.

Cameron



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



Bug#440510: debtorrent: please provide an entry for /etc/logrotate.d

2007-09-12 Thread Sebastian Bremicker
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]



Bug#440510: debtorrent: please provide an entry for /etc/logrotate.d

2007-09-02 Thread Juergen Rinas
Package: debtorrent
Version: 0.1.4.1
Severity: wishlist


since the default configuration of debtorrent-client is to
log in debugging mode (which is ok for this new piece of software),
the log files are growing rapidly...
... please consider using logrotate to cut log files periodicly...


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-jr-dama (SMP w/2 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages debtorrent depends on:
ii  adduser   3.104  add and remove users and groups
ii  python2.4.4-6An interactive high-level object-o
ii  python-support0.6.4  automated rebuilding support for p

Versions of packages debtorrent recommends:
pn  apt-transport-debtorrent   none(no description available)
ii  python-crypto  2.0.1+dfsg1-2 cryptographic algorithms and proto

-- no debconf information


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