[Twisted-Python] Re: log rotation

Tsai Li Ming mailinglist at ltsai.com
Tue Sep 21 10:29:08 EDT 2004

J C Lawrence wrote:
> On Tue, 21 Sep 2004 13:21:09 GMT 
> exarkun  <exarkun at divmod.com> wrote:
>>Why you'd _want_ to rotate them this way, instead of just letting them
>>automatically be rotated by twistd (which they will be), I dunno.  Is
>>there some feature logrotate has that twistd lacks that you're
>>interested in?
> In my case its the simple fact that logrotate is responsible for all log
> rotation for every system on the network.  Making twisted-based apps a
> special case which I then have to tell everybody about, remind them
> repeatedly etc, is not particularly welcome.

Same for me too. However, how do I do that in logrotate? I notice that 
if I send a SIGUSR1 to the twisted process, it will rotate the log file 

/var/log/server.log {
         /bin/kill -SIGUSR1 `cat /var/run/server.pid 2>/dev/null` 2> 
/dev/null || true


More information about the Twisted-Python mailing list